我知道这很简单..我绝对缺少一些东西..我放弃了!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