Http injection

will mitmproxy be able to achieve things like this?

and this one same thing but on windows.

Check out Pathoc, it has those features:

could you give me out an example of changing the host header?

Try one of these from command line:

pathoc -s get:/path:h"Host"="" -p -q

pathoc -s get:/path:h\"Host\"=\"\" -p -q

There is one more way, use mitmproxy and edit the request.