我正在尝试通过鱿鱼代理使用Curl发出HTTPS请求。我知道鱿鱼代理有效,因为我已经为浏览器设置了鱿鱼代理,并且可以正常工作。我尝试使用here的几乎所有答案,并搜索了其他几个网站,但没有发现任何问题。
一些样本搜索和结果:1)使用基本身份验证内联:curl -x https://user:pass@host:port https://www.google.com -v
结果:
Establish HTTP proxy tunnel to www.google.com:443
Proxy auth using Basic with user 'username'
CONNECT www.google.com:443 HTTP/1.1
Host: www.google.com:443
Proxy-Authorization: Basic abaskldfja1fiopweifj=
User-Agent: curl/7.47.0
Proxy-Connection: Keep-Alive
Recv failure: Connection reset by peer
Received HTTP code 0 from proxy after CONNECT
Closing connection 0
curl: (56) Recv failure: Connection reset by peer
2)使用环境变量(https_proxy
和http_proxy
):相同结果
3)将凭据放入参数:curl -x https://host:port https://www.google.com -v --proxy-user user:pass
:相同结果
有人猜我可能做错了吗?
我们在使用F5 Big IP代理时遇到同样的问题。但是,每900秒HTTP GET成功一次,但是只有一次,然后它继续失败900秒。听起来像是缓冲区/缓存/块问题。我们每秒都在卷曲。