import ( "net/http" u "net/url")// http GET 代理func HttpGetFromProxy(url, proxyURL string) (*http.Response, error) { req, _ := http.NewRequest("GET", url, nil) proxy, err := u.Parse(proxyURL) if err != nil { return nil, err } client := &http.Client{ Transport: &http.Transport{ Proxy : http.ProxyURL(proxy), }, } return client.Do(req)}