www

package
v0.0.0-...-7909c65 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2016 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedirectAttemptedError = errors.New("--OK--")

Functions

func Do

func Do(cxt *Context) (*http.Response, error)

func Download

func Download(url string) (string, error)

func DumpBody

func DumpBody(res *http.Response, fn string) (string, error)

func GetAttr

func GetAttr(attr string, node *xmlpath.Node) string

func GetChilds

func GetChilds(xPath string, node *xmlpath.Node) *xmlpath.Iter

func GetValue

func GetValue(node *xmlpath.Node) string

func ParseAndGet

func ParseAndGet(file string, xPath string) (*xmlpath.Iter, error)

func SaveResponse

func SaveResponse(response *http.Response) (string, error)

Types

type Context

type Context struct {
	URL        string
	Parameters map[string]string
	Headers    map[string]string
	Cookies    map[string]string
	Data       map[string]string
	Method     string
}

func PostForm

func PostForm(urlPath string, formValues map[string]string) (*Context, error)

Jump to

Keyboard shortcuts

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