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

forward data, and get return data from remote server?

Open Octolus opened this issue 8 years ago • 2 comments

https://domain.tld <=> MITM <=> Nginx/PHP-FPM <=> https://domain.tld

So it would basically forward the request data (headers, post and such) to my server using a HTTP Request to a IP. My server would then act as a reverse proxy, and return customized data.

How would this be doable?

So basically; before returning the data. It will get the return data from my nginx server instead.. That way I can customize the data using my nginx reverse proxy.

Octolus avatar Apr 24 '17 14:04 Octolus

i don't really understand your workflow (arrows show your domain.tld on both ends of the workflow?!?)

but it sounds like you want mitm-proxy to forward requests to an upstream proxy server (your nginx server) is that correct?

jasonswearingen avatar May 05 '17 14:05 jasonswearingen

@jasonswearingen Not sure if that was the original question, but how do you really forward the requests to an upstream proxy server?

igorshapiro avatar May 15 '17 03:05 igorshapiro