Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

about proxy to 'CONNECT' method #408

Open
sequoiar opened this Issue · 4 comments

4 participants

@sequoiar

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.

@tommuhm

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):
https://gist.github.com/tom-muhm/5653643

@steelbrain

Bump

@jcrugzz
Owner

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.

@steelbrain

@jcrugzz I am unable to get https to work in node-http-proxy, here's the code example https://gist.github.com/steelbrain/b24f795fe92ec229ddb9#comment-1489331

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.