mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
856a35af6d
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). |
||
---|---|---|
.. | ||
bench | ||
examples | ||
helper_tools | ||
mitmproxy | ||
release | ||
__init__.py | ||
conftest.py | ||
filename_matching.py | ||
full_coverage_plugin.py | ||
individual_coverage.py |