How to fix Http protocol error using mitmproxy

#1

I encountered Http protocol error.

The traffic comes from embedded system which I can not change at the moment.

It is fully accepted in Apache/2.2.14 but after upgrade to Apache/2.4.29 it is rejected.

I thought mitmproxy could provide a workaround but I can not configure it this way.

In mitmproxy --mode transparent I get an error:

HTTP protocol error in client request: Unknown HTTP version: b’HTTP/1.0.9’

I thought using —replacements function I could correct the GET request in a way there will be HTTP/1.1 protocol version indication.

Is it possible to do it in mitmproxy ?

If yes, Can you give me some guidelines?

If it is not possible in mitmproxy any thoughts on workaround? (I am not able to use Apache/2.2.14 anymore)

0 Likes