client := http.DefaultClient
form := url.Values{
"LoginForm[username]": []string{"user"},
"LoginForm[password]": []string{"pass"},
}
response, err := client.Post("http://httpbin.org/post", "application/x-www-form-urlencoded", strings.NewReader(form.Encode()))
if err != nil {
panic(err)
}
defer response.Body.Close()
b, err := ioutil.ReadAll(response.Body)
if err != nil {
panic(err)
}
println(string(b))