title: Requesting API Content on Localhost while using Tor + Privoxy
body: <p>I'm using Tor, Privoxy, and Python to anonymously crawl sources on the web.  Tor is configured with <code>ControlPort 9051</code>, while Privoxy is configured with <code>forward-socks5 / localhost:9050 .</code> </p>
  
  <p>My scripts are working flawlessly, except when I request an API resource that I have running on <code>8000</code> on the same machine. If I hit the API via urllib2 setup with the proxy, I get an empty string response. If I hit the API using a new, non-proxy instance of urllib2, I get a <strong>HTTP Error 503: Forwarding failure</strong>. </p>
  
  <p>I'm sure that if I open 8000 to the world I'll be able to access the port through the proxy. However, there must be a better way to access the resource on localhost. Curious how people deal with this. </p>