Press "Enter" to skip to content

CURL 使用代理链接

使用帮助指令看下如何使用

curl --help

你会看到

-x, --proxy [protocol://]host[:port] 

那么我们可以这样来操作:

curl -x "http://user:pwd@127.0.0.1:1234" "http://httpbin.org/ip"

curl --proxy "http://user:pwd@127.0.0.1:1234" "http://httpbin.org/ip"

参考资料:

https://oxylabs.io/blog/curl-with-proxy

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注