title: Go - JSON-RPC - "too many colons"
body: <p>I'm trying to call a <a href="https://en.bitcoin.it/wiki/How_to_use_the_API,_JSON-RPC" rel="nofollow">HTTP JSON-RPC server for Bitcoin</a> using Go (not on GAE), but I get error of</p>
  
  <pre><code>dial tcp http://user:pass@127.0.0.1:8332: too many colons in address
  </code></pre>
  
  <p>or</p>
  
  <pre><code>dial ip http://user:pass@127.0.0.1:8332: lookup http://user:pass@127.0.0.1:8332: no such host
  </code></pre>
  
  <p>I tried various <a href="http://golang.org/pkg/net/#Dial" rel="nofollow">network configurations</a>, but couldn't get anything going. When I just typed the address into the browser, I got a response from the server:</p>
  
  <pre><code>{"result":null,"error":{"code":-32700,"message":"Parse error"},"id":null}
  </code></pre>
  
  <p>Which looks like a proper response for an empty call.</p>
  
  <p>How do I correctly call that HTTP JSON-RPC server in Go?</p>