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

Downgrade HTTPS to HTTP

Open Yamaha32088 opened this issue 2 years ago • 1 comments

I am looking to make a request from an HTTPS endpoint to a HTTP endpoint. Basically https://example.com ----> localhost:3000 I have tried setting the ctx.proxyToServerRequestOptions.protocol to HTTP but it gives me an error that it isn't supported.

Yamaha32088 avatar Aug 11 '23 23:08 Yamaha32088

  • This function is where the library start making a request from the proxy server to the destination server
  • And this is where the library establishes the request
  • I've implemented a feature similar to your case with this library, my solution is to pull the library, modify the above code and publish a new npm package
  • If you need more details, please feel free to ping me 👍🏻 @Yamaha32088

kics223w1 avatar Aug 15 '23 04:08 kics223w1