Guest User

Untitled

a guest
Dec 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. form := url.Values {
  2. "username": {"Jack"},
  3. }
  4.  
  5. proxyUrl, err := url.Parse(mass[bproxy]) //массив с прокси серверами
  6. httpClient := &http.Client { Transport: &http.Transport { Proxy: http.ProxyURL(proxyUrl) } }
  7.  
  8. blose := bytes.NewBufferString(form.Encode())
  9. httpr, err := httpClient.Post(host, "application/x-www-form-urlencoded", bclose)
  10. httpr.Close = true;
  11.  
  12. if err != nil {
  13. panic(err)
  14. }
Add Comment
Please, Sign In to add comment