Skip to content


Subversion checkout URL

You can clone with
Download ZIP


about proxy to 'CONNECT' method #408

sequoiar opened this Issue · 4 comments

4 participants


How about proxy to 'CONNECT' request?

In case chrome browser:

  1. chrome send SPDY 'CONNECT' request first
  2. then http-proxy create a tcp/ssl connection to origin server
  3. then chrome send 'HTTP CONNECT' request
  4. then chrome fetch HTTPS request over proxy tunnel.

this way can implements a end-to-end secure forward proxy.


I would also like to see this feature implemented in the module.

Here is my current implementation for the problem (maybe something ca be reused):




if you want to tunnel the proxy request through a tunnel (which uses connect), you want to use something like tunnel-agent and pass it in as the agent. If there is another use case please be more clear and give a code example that does not work.


@jcrugzz I am unable to get https to work in node-http-proxy, here's the code example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.