Open GoogleCodeExporter opened 9 years ago
刚才找到原因了,难以想象的urllib实现:
The urlopen() function works transparently with proxies which do not require
authentication. In a Unix or Windows
environment, set the http_proxy, ftp_proxy or gopher_proxy environment
variables to a
URL that identifies the proxy server
before starting the Python interpreter. For example (the "%" is the command
prompt):
% http_proxy="http://www.someproxy.com:3128"
% export http_proxy
% python
...
In a Windows environment, if no proxy environment variables are set, proxy
settings
are obtained from the registry's
Internet Settings section.
简单说,windows下urllib默认会把IE设定的proxy作为自己的proxy,而��
�写的proxy程序中恰恰用
urllib做传输
这样,proxy肯定死循环了.
用urlopen得不到数据是因为它去找代理了,而设置的代理没有运
行,且在本地,怪不得我抓包根本
抓不到向外发的包...
Original comment by dug...@188.com
on 16 Jun 2008 at 4:10
Original issue reported on code.google.com by
dug...@188.com
on 13 Jun 2008 at 3:33