RE: [A-a-p-user] A-A-P and proxy
Brought to you by:
vimboss
From: <coe...@cm...> - 2003-02-25 09:25:45
|
> This very much looks like an error in the Python urllib module. For > open_http() there is a check whether "url" is an ordinary string or a > tuple. This check is missing from open_ftp(). This probably > means that > FTP proxies are not supported yet. But they should not cause a crash > because you set the "ftp_proxy" environment variable! > > I think you have enough info to file a bug report to the Python bug > tracker. The essential statements are in URLopener.open(): > > url = (host, fullurl) # Signal special case to open_*() > > Hmm, this bug report appears to be for the same item: > > > http://mail.python.org/pipermail/python-bugs-list/2002-March/0 > 10599.html Apparently you already added a comment to that report, assuming you are "vimboss" :-) , so I don't think I can add much there. > I'm afraid I can't fix this in A-A-P (without replacing urllib). I think that I will do just that: upgrade to Python 2.2. and see if that helps. Apparently Python 2.2. does not have this problem, as David Medberry wrote about the bug: "This is _NOT_ a bug under Linux Python 2.2--it works just fine there." I'm not running AAP on windows (I'm on SunOS 5.7), so I think the Python release is the relevant difference. > There are ftp-to-http sites (can't find a URL right now...). > You can even use a site that does ftp downloads by e-mail! I'll do some Googling and see if I can find one. Thanks, Coen |