[Solved] I can not send a post request with Golang?


Thanks @Peter

urlLogin := "http://kasant.gvc.oao.rzd:8888/kasant/login?"
formData := url.Values{
    "dor_user": {"51"},
    "login":    {"nvivc"},
    "pass":     {"51256"},
}
cookieJar, _ := cookiejar.New(nil)
client := &http.Client{
    Jar: cookieJar,
}
respp, _ := client.Post(urlLogin, "application/x-www-form-urlencoded", bytes.NewBufferString(formData.Encode()))
defer respp.Body.Close()

solved I can not send a post request with Golang?