Retrieve file by FTP (using urllib)
phd at phd.russ.ru
Fri Feb 11 12:12:30 CET 2000
On Fri, 11 Feb 2000, Fredrik Lundh wrote:
> interesting. they're using a non-standard server,
> which seems to implement the FTP protocol a bit
> more literally than urllib expects...
> full story: urllib issues an NLST command to make
> sure the file exists, before starting the download.
> however, RFC959 doesn't necessarily allow this:
> [NLST] causes a directory listing to be sent from
> server to user site. The pathname should specify a
> directory or other system-specific file group descriptor;
> a null argument implies the current directory.
> most FTP servers seem to treat NLST commands as
> ordinary "ls -l", but this one doesnt.
> I'm pretty sure the only reasonable solution is to
> remove the offending code from urllib...
Oleg Broytmann Foundation for Effective Policies phd at phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list