title: curl succeeds but wget gives 502 error for a request on custom port
body: <pre><code>$ curl http://localhost:7810/test
  hello world!
  $ 
  $ 
  $ wget http://localhost:7810/test
  --2011-09-27 07:04:06--  http://localhost:7810/test
  Resolving &lt;snipped&gt;
  Connecting to &lt;snipped&gt; connected.
  Proxy request sent, awaiting response... 502 Bad Gateway
  2011-09-27 07:04:06 ERROR 502: Bad Gateway.
  
  $
  </code></pre>
  
  <p>It seems that wget is looking at port <code>80</code> even though I specified <code>7810</code>. How can I work around this issue?</p>