title: Error when fetching URL through proxy in Go
body: <p>This is related to <a href="https://stackoverflow.com/q/14661511/561309">this other question</a>. I'm fetching a URL through a proxy using this simple code:</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "io/ioutil"
      "net/http"
      "net/url"
  )
  
  func main() {
      proxyUrl, err := url.Parse("87.236.233.92:8080")
      httpClient := &amp;http.Client { Transport: &amp;http.Transport { Proxy: http.ProxyURL(proxyUrl) } }
      response, err := httpClient.Get("http://stackoverflow.com")
      if err != nil {
          fmt.Println(err.Error())
      } else {
          body, _ := ioutil.ReadAll(response.Body)
          fmt.Println("OK: ", len(body))
      }
  }
  </code></pre>
  
  <p>If I run this code, I am getting this error:</p>
  
  <blockquote>
    <p>Get <a href="http://stackoverflow.com">http://stackoverflow.com</a>: http: error connecting to proxy 87.236.233.92:8080: GetServByName: The requested name is valid, but no data of the requested type was found.</p>
  </blockquote>
  
  <p>I know that the proxy address is valid and if I fetch the URL through the proxy by other means it work. Any idea why I'm getting this error? </p>