TooTallNate/proxy-agents

Reading headers from the Response for HTTP Connect method to the Proxy Server

Closed this issue · 1 comments

Hello,

When I send a request through a proxy server using curl with --verbose option it also prints headers that come from the Response for HTTP Connect method to the Proxy Server. Does HttpsProxyAgent provides a way to read these headers?

Just to clarify, I'm not interested in headers from the target server, but interested in headers from the Proxy Server.

Thank you!

You can listen for the "proxyConnect" event on either the Request instance or the Agent instance.