scylla
scylla copied to clipboard
"Received HTTP code 405 from proxy after CONNECT" 错误
你好,
代理池里一共有4个IP,

直接用 8081 的端口会提示:
# curl https://api.ipify.org -x http://127.0.0.1:8081/
curl: (56) Received HTTP code 405 from proxy after CONNECT
分别用上面的代理测试,
# curl https://api.ipify.org -x http://193.27.208.137:59032
curl: (56) Proxy CONNECT aborted
# curl https://api.ipify.org -x http://203.142.68.138:8080
203.142.68.138
# curl https://api.ipify.org -x http://138.201.223.250:31288
178.162.222.250
# curl https://api.ipify.org -x http://177.86.0.180:50160
177.86.0.180
这是个bug?
确实,8081 端口的只支持 http。这个就可以:
curl http://api.ipify.org -x http://127.0.0.1:8081/