Open tcurdt opened 10 years ago
I am trying to achieve the same thing and apparently ended up writing my own proxy for https. From the http-proxy code I see there is no callback registered for "CONNECT" event.
The following blog helped. http://newspaint.wordpress.com/2012/11/05/node-js-http-and-https-proxy/
Same error here..
I believe that this is a similar error to the one happening for me and mentioned in issue https://github.com/nodejitsu/node-http-proxy/issues/453
I am trying to log http and https traffic going through the proxy. After a little fiddling around I came up with the following code. Unfortunately it does not work for https and I am not sure why not.
Testing with
curl
For
https
it just sits there and nothing happens. But I am not even getting a callback in the server.Bug? Wrong expectations? What am I missing?