goiliad

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCredentials

func CreateCredentials(u, p string) url.Values

CreateCredentials allows to set user e password into a login request

func CreateRequest

func CreateRequest(d url.Values, c *http.Cookie) (*http.Request, error)

CreateRequest allows to create a new login request

func GetInitialCookie

func GetInitialCookie() (*http.Cookie, error)

GetInitialCookie retrieve the sessionCookie which allows to perform login

func PageScraper

func PageScraper(html string) (map[string]string, error)

PageScraper extracts value from the body html page

func PerformRequest

func PerformRequest(r *http.Request) (*http.Response, error)

PerformRequest allows to send the login request

func ReadResponse

func ReadResponse(r *http.Response) (string, error)

ReadResponse allows to read the response and to return a string version of it

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL