resp, err := http.PostForm("http://example.com/form",
url.Values{"login_login": {"login"}, "login_password": {"passwd"}})
if nil != err {
fmt.Println("errorination happened getting the response", err)
return
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if nil != err {
fmt.Println("errorination happened reading the body", err)
return
}
fmt.Println(string(body) + "\nhello")
ответ на задачку FN+F2.