📜  使用带有 curl 的代理 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:51.047000             🧑  作者: Mango

代码示例1
#!/bin/bash
curl \
-x http://proxy-url:port \
--proxy-user 'proxy-username:proxy-password' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36' \
-L "https://www.example.com" \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' \
-o output.txt \
-vvv