mitmproxy/test
Denis Kasak 856a35af6d
Use original flow host instead of IP when exporting to curl/httpie. (#4307)
Use original flow host instead of IP when exporting to curl/httpie.

Unless this is done, the SNI server name will not be sent, often making
the curl/httpie command have different behaviour than the original
request (most often in the form of failing to establish a TLS
connection).

With this change, we always use the original host, fixing this failure.
However, if the original host is a domain, it may sometimes resolve to
a different IP address later on. In curl, we solve this problem by
forcing it to connect to the original IP using `--resolve`. For httpie
there is currently no easy solution (see:
https://github.com/httpie/httpie/issues/414).
2021-02-09 18:44:46 +00:00
..
bench nuke legacy protocol stack 2020-12-14 22:14:43 +01:00
examples move Headers/Message/Request/Response into mitmproxy.http 2021-02-05 08:43:15 +01:00
helper_tools add memory leak detect script for certificate generation, refs #4368 2020-12-29 01:17:01 +01:00
mitmproxy Use original flow host instead of IP when exporting to curl/httpie. (#4307) 2021-02-09 18:44:46 +00:00
release Windows: build pyinstaller onedir and use it for installer 2021-01-05 15:56:33 +01:00
__init__.py move tests into shared folder 2016-02-15 16:34:22 +01:00
conftest.py cibuild: cleanup outdated providers 2020-12-14 20:01:32 +01:00
filename_matching.py nuke legacy protocol stack 2020-12-14 22:14:43 +01:00
full_coverage_plugin.py pyupgrade --py36-plus mitmproxy/**/*.py 2020-11-20 19:25:26 +01:00
individual_coverage.py remove pathod and pathoc 2020-12-13 20:21:11 +01:00