Reading headers from the Response for HTTP Connect method to the Proxy Server
Closed this issue · 1 comments
sergzak022 commented
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!
TooTallNate commented
You can listen for the "proxyConnect"
event on either the Request
instance or the Agent
instance.