urllib.urlretrieve and PASV mode

Mats Wichmann mats at laplaza.org
Sat Mar 22 08:28:39 EST 2003


On Sat, 22 Mar 2003 11:47:22 +0100, "Thomas Weholt" <2002 at weholt.org>
wrote:

:As far as I know, passive mode is ftp-specific. Urllib is used to
fetch
:files served over http and passive mode is not relevant to that
protocol.
:Correct me if I'm wrong.

urllib uses http if it looks like an http resource, and ftp (by
importing ftplib) if it looks like an ftp resource.

Mats Wichmann





More information about the Python-list mailing list