Saturday 22 February 2020

Querying a site behind a proxy

So I need to implement a proxy that redirects from my localhost to another website (for example, google or a public test endpoint such as httpbin). I've tried using both http-proxy-middleware and express-http-proxy and I end up getting a 400 error when I attempt to do a GET request to the proxied url. Anyone have any experience with this? I assume something is wrong with my headers when I send my GET request as logging has shown the proxy is set up successfully. Kind of a last resort for me as I havent been able to find much online.

Submitted February 23, 2020 at 03:57AM by AltruisticPenguin

No comments:

Post a Comment