FTP, Proxy and urllib2
John J. Lee
jjl at pobox.com
Mon Jun 7 13:31:01 EDT 2004
Martin Brodbeck <dg2smb at gmx.de> writes:
> I want to upload a file with ftp over a proxy. I know that I have to
> use urllib2 to be able to connect over a proxy.
> But I don't have any idea how I can upload the file :)
> I'm a python-novice and hope that you can give me some tips or code
> samples...
[...]
I think you need to use ftplib. urllib2 is for fetching files, not
uploading them (unless there's some obscure feature of ftp URLs that
allows it).
Use ftplib.
John
More information about the Python-list
mailing list