node-http-proxy
node-http-proxy copied to clipboard
How to proxy HTTPS without decryption?
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?
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.
try: https://www.npmjs.com/package/pms-proxy
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.