读取代理失败响应:将wget与squid代理一起使用时,对等连接重置

时间:2020-04-22 00:02:52

标签: http curl proxy wget squid

我有一个配置了https_port指令的quid代理3.5:

https_port 3128 cert=/etc/squid/ssl.pem

curl客户端运行正常:

curl  -U user:pass -Ix https://proxy.mydomain.com:3128 https://google.com
HTTP/1.1 200 Connection established

HTTP/2 301
location: https://www.google.com/
...

使用wget失败:

wget -e https_proxy=https://user:pass@proxy.mydomain.com:3128 https://example.com
--2020-04-21 16:58:08--  https://example.com/
Resolving proxy.mydomain.com (proxy.mydomain.com)... 10.0.0.1
Connecting to proxy.mydomain.com (proxy.mydomain.com)|10.0.0.1|:3128... connected.
Failed reading proxy response: Connection reset by peer
Retrying.

--2020-04-21 16:58:09--  (try: 2)  https://example.com/
Connecting to proxy.mydomain.com (proxy.mydomain.com)|10.0.0.1|:3128... connected.
Failed reading proxy response: Connection reset by peer
Retrying.

squid cache.log中没有错误

谢谢!

0 个答案:

没有答案
相关问题