我知道這很簡單..我絕對缺少一些東西..我放棄了!http_proxy設置
#!/bin/sh
export http_proxy='http://unblocksitesnow.info'
rm -f index.html*
strace -Ff -o /tmp/mm.log -s 200 wget 'http://slashdot.org'
我已經使用不同的代理服務器..無濟於事。我得到了一些默認的網頁.. 在/ etc/wgetrc use_proxy =上
其實我想使用此設置(HTTP_PROXY )與python的urllib2。它訪問某些默認頁面以及..
strace的 - 做代理服務器的DNS查找 GET http://slashdot.org/ HTTP/1.0 \ r \ n用戶代理:Wget的/ 1.11.4 \ r \ nAccept:/ \ r \ n主機:slashdot.org \ r \ n \ r \ n
任何指針??
請編輯您的文章以使用「代碼」格式。這將使它更具可讀性。謝謝! – 2009-07-10 22:48:54
注意:如果您在應用程序中使用它,請不要相信HTTP_PROXY!有關更多詳細信息,請參閱https://httpoxy.org。 – rugk 2016-07-18 15:36:54