一、wget設置代理
eg:
wget -Y on -e "http_proxy=http://10.0.0.172:9201" "www.wo.com.cn"
此命令使用10.0.0.172:9201這個代理服務器IP和端口訪問站點www.wo.com.cn
參數說明
-Y 是否使用代理
-e 執行命令
二、curl設置代理
eg:
curl -x 10.0.0.172:80 www.wo.com.cn
此命令使用10.0.0.172:80這個代理服務器IP和端口訪問站點www.wo.com.cn
參數說明
-x 設置代理,格式爲host[:port],port的缺省值爲1080a