I need some help setting up mitmproxy to replay requests that were recorded in reverse proxy mode.
I have recorded it with:
mitmdump -w api.dump -p 1080 -R http://remoteapi.somewhere.com:80
I try to replay it with:
mitmdump -S api.dump -p 1080 —no-pop
But while replaying I get the error:
HTTP protocol error in client request: Invalid HTTP request form (expected authority or absolute...)
I can replay api.dump file in client mode just fine. What I would like to do is to replay it in server mode without touching the upstream server.
Can I do this with mitmproxy without using transparent mode? If so, what am I missing?
thanks in advance for your attention.