diff options
author | Yoann L <yoann.lamouroux@data-impact.fr> | 2019-10-29 12:24:07 +0100 |
---|---|---|
committer | Yoann L <yoann.lamouroux@data-impact.fr> | 2019-10-29 12:24:07 +0100 |
commit | 4383122b7b6930612ba865c6d027eb375ecce058 (patch) | |
tree | d73fbd5b772a7f1c523f6b2203cd31677e9403ab /examples/complex/sslstrip.py | |
parent | 33707403614642ae63d7ed24f36c80a3f58ce7ac (diff) | |
download | mitmproxy-4383122b7b6930612ba865c6d027eb375ecce058.tar.gz mitmproxy-4383122b7b6930612ba865c6d027eb375ecce058.tar.bz2 mitmproxy-4383122b7b6930612ba865c6d027eb375ecce058.zip |
several fixes on command exports has several problems: #3676
* authority can usually rely on actual URL. as `:authority` headers will
break curl command. (advise if it's better to change them to Host, or if
it should be reported on curl side)
* `content-length`: 0 is added for each request. if it's found in the
curl argument list, it'll try to fetch an empty body (and crash).
also trying to guess on accept-encoding header to add the
`--compress` option when fetching potentially compressed content.
* ditto for httpie
* factorize it into raise_if_missing_request (and rename it)
Diffstat (limited to 'examples/complex/sslstrip.py')
0 files changed, 0 insertions, 0 deletions