代理检查wGET?

时间:2013-11-10 19:17:20

标签: batch-file curl cmd wget

如何使用wget检查代理?

proxylist.txt

41.230.30.24:3128
182.253.32.175:3128
77.65.19.35:3128
176.192.42.230:80
...

如何按顺序测试代理列表。

示例:

  

wget http://www.google.com -U Mozilla / 5.0(Windows NT 6.1; WOW64; rv:20.0)Gecko / 20100101 Firefox / 20.0 -P“” - cookies = off --no-http-keep-alive - e use_proxy = yes --max-redirect 0 -t 1 --timeout = 5 -e http_proxy = 41.230.30.24:3128

     

wget http://www.google.com -U Mozilla / 5.0(Windows NT 6.1; WOW64; rv:20.0)Gecko / 20100101 Firefox / 20.0 -P“” - cookies = off --no-http-keep-alive - e use_proxy = yes --max-redirect 0 -t 1 --timeout = 5 -e http_proxy = 182.253.32.175:3128

等。

我该如何自动执行此操作。

1 个答案:

答案 0 :(得分:1)

for /f %%a in (proxylist.txt) do wget http://www.google.com -U Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0 -P "" --cookies=off --no-http-keep-alive -e use_proxy=yes --max-redirect 0 -t 1 --timeout=5 -e http_proxy=%%a