[Python-bugs-list] [Bug #110848] Fwd: Debian Bug#40891: urllib.urlopen/urlretrieve doesn't support passive FTP (PR#58)
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 15 Sep 2000 12:25:39 -0700
Bug #110848, was updated on 2000-Aug-01 14:16
Here is a current snapshot of the bug.
Project: Python
Category: None
Status: Closed
Resolution: Later
Bug Group: Feature Request
Priority: 5
Summary: Fwd: Debian Bug#40891: urllib.urlopen/urlretrieve doesn't support passive FTP (PR#58)
Details: Jitterbug-Id: 58
Submitted-By: flight@debian.org
Date: Fri, 20 Aug 1999 13:26:17 -0400 (EDT)
Version: 1.5.2
OS: Debian potato
[Forwarded from the Debian bug tracking system]
Sender: Chris Lawrence <quango@watervalley.net>
Package: python-base
Version: 1.5.2-4
Severity: normal
File: /usr/lib/python1.5/urllib.py
urllib doesn't support passive FTP, even though the underlying ftplib
module does. I dunno what the right approach is (perhaps a urllib
module global variable). I know some tools (I'm aware of at least
ncftp and wget) autodetect whether PASV is supported by FTP servers;
perhaps that intelligence could be added to ftplib.
(Also: the FTP class's set_pasv() method isn't documented in my
version of python-docs; I haven't checked the new 1.5.2 docs yet
however.)
At the moment, I'm using this ugly hack to get around it:
# Really ugly hack; don't try this at home:
def ftpwrapper_init(self):
import ftplib
self.busy = 0
self.ftp = ftplib.FTP()
self.ftp.set_pasv(1)
self.ftp.connect(self.host, self.port)
self.ftp.login(self.user, self.passwd)
for dir in self.dirs:
self.ftp.cwd(dir)
urllib.ftpwrapper.init = ftpwrapper_init
# End really ugly hack
====================================================================
Audit trail:
Mon Aug 30 12:35:03 1999 guido moved from incoming to request
Follow-Ups:
Date: 2000-Aug-01 14:16
By: none
Comment:
From: "Fred L. Drake, Jr." <fdrake@acm.org>
Subject: Re: [Python-bugs-list] Fwd: Debian Bug#40891: urllib.urlopen/urlretrieve doesn't support passive FTP (PR#58)
Date: Mon, 23 Aug 1999 10:03:44 -0400 (EDT)
flight@debian.org writes:
> Sender: Chris Lawrence <quango@watervalley.net>
> Package: python-base
> Version: 1.5.2-4
> Severity: normal
> File: /usr/lib/python1.5/urllib.py
...
> (Also: the FTP class's set_pasv() method isn't documented in my
> version of python-docs; I haven't checked the new 1.5.2 docs yet
set_pasv() is documented in the documentation release 1.5.2p1.
-Fred
--
Fred L. Drake, Jr. <fdrake@acm.org>
Corporation for National Research Initiatives
-------------------------------------------------------
Date: 2000-Sep-07 15:01
By: jhylton
Comment:
Please do triage on this bug.
-------------------------------------------------------
Date: 2000-Sep-15 12:25
By: jhylton
Comment:
added to pep 42
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110848&group_id=5470