node-http-proxy icon indicating copy to clipboard operation
node-http-proxy copied to clipboard

How to proxy HTTPS without decryption?

Open git-hub-learning opened this issue 3 years ago • 3 comments

I've found this issue, but I didn't understand whether it's possible or not: https://github.com/http-party/node-http-proxy/issues/609

I want to be able to view proxied packets in a similar way WireShark shows them: it shows ip-address, length, raw encrypted data. It should also be possible to do something with the packets, for example delay them based on their length.

Is it possible with this library and is there an example of how to do this?

git-hub-learning avatar Jan 19 '22 10:01 git-hub-learning

You are just looking for logging the request response details. For this you can use onproxyreq and onproxyreq options. Check the documentation. Coming to the point of delaying a request, as far as I know the library does not have such feature. May be you can raise a request to contributors. But to add GUI to this library is not that much useful and easy, as we have already well developed products like fiddler and Wireshark. From this library you can redirect the request to any proxy server like fiddler or Wireshark and you can see all the requests and response.

praveen06527 avatar Jan 22 '22 21:01 praveen06527

try: https://www.npmjs.com/package/pms-proxy

wawahuy avatar May 09 '22 04:05 wawahuy

Not sure if it fits your need, but reading content-length header and using this https://github.com/http-party/node-http-proxy#setup-a-stand-alone-proxy-server-with-latency depending on the length should be possible.

RiZKiT avatar Jul 05 '22 21:07 RiZKiT