title: Why are browser requests not going through my proxy server?
body: <p>I tried writing a simple proxy in node.js today with a basic HTTP server, I realized in Firefox when I reload the proxy, I can see a request.  However, when I load any page, it doesn't seem to be going through my proxy.  I can <code>curl</code> the server, and it works fine. But why is the browser not using my proxy?</p>
  
  <p>The code just looks like:</p>
  
  <pre><code>var http = require('http');
  
  var listener = function(request, response) {
    console.log('hi');
  
    response.write("200");
    response.end();
  };
  
  var server = http.createServer(listener);
  server.listen(8000, undefined, function() {
    console.log('Server has started on 8000');
  });
  </code></pre>
  
  <p>I'm just looking for something that changes the header of the request, though a reverse proxy would also be cool.</p>
  
  <p>Edit: This is how I'm pointing my browser to my proxy. In Firefox, preferences -> advanced -> Network -> Settings </p>
  
  <p>I tried to setting the HTTP Proxy under "Manual proxy configuration" to 127.0.0.1:8000 - that seems to do something, cuz all my pages fail to load, but I don't see any activity on my proxy server.</p>
  
  <p>I also tried to just put 127.0.0.1:8000 under "Automatic proxy configuration URL" which sends a request when I just configure it, but nothing is proxied afterwards. I'm wonder what kind of response the "automatic" configuration is looking for... </p>