curl --help你会看到
-x, --proxy [protocol://]host[:port]那么我们可以这样来操作:
curl -x "http://user:[email protected]:1234" "http://httpbin.org/ip"
curl --proxy "http://user:[email protected]:1234" "http://httpbin.org/ip"参考资料:
https://oxylabs.io/blog/curl-with-proxy