golang http get 1 resp, err := http.Get("http://example.com/") http post 1 2 3 4 5 6 7 8 9 10 11 12 13 func httpPostForm() { // params:=url.Values{} // params.Set("hello","fdsfs") //这两种都可以 params= url.Values{"key": {"Value"}, "id": {"123"}} resp, _:= http.PostForm("http://baidu.com", body) defer resp.Body.Close() body, _:= ioutil.ReadAll(resp.Body) fmt.Println(string(body)) } proxy https://www.flysnow.org/2016/12/24/golang-http-proxy.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14