Server replay https still go to upstream proxy but http not #4992
-
Problem DescriptionI start mitmdump with an upstream proxy. Replay http request doesn't go to upstream proxy as expected, but replay https request still goes to upstream proxy. Did I do something wrong? Steps to reproduce the behavior:
touch mitmproxy_cache
mitmdump --mode "upstream:http://localhost:8889" --listen-port 30000 --save-stream-file mitmproxy_cache
curl --proxy http://localhost:30000 --insecure http://example.com
curl --proxy http://localhost:30000 --insecure https://example.com
Now I have this file
mitmdump --mode "upstream:http://localhost:8889" --listen-port 30000 --server-replay mitmproxy_cache --server-replay-nopop
curl --proxy http://localhost:30000 --insecure http://example.com
curl --proxy http://localhost:30000 --insecure https://example.com
System InformationMitmproxy: 7.0.4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I try a https link whose response is a large file. A connection is established with upstream proxy but the large file is not downloaded from upstream proxy. The large file response is replayed from the replay file. Although I can't understand why there is still a connection to upstream proxy for https request, the behavior that real traffic doesn't go to upstream proxy already fulfill my requirement. |
Beta Was this translation helpful? Give feedback.
I try a https link whose response is a large file. A connection is established with upstream proxy but the large file is not downloaded from upstream proxy. The large file response is replayed from the replay file.
Although I can't understand why there is still a connection to upstream proxy for https request, the behavior that real traffic doesn't go to upstream proxy already fulfill my requirement.