FTP, Proxy and urllib2

Martin Brodbeck dg2smb at gmx.de
Tue Jun 8 13:13:39 EDT 2004


fishboy wrote:

Hello,

> ftplib wont work with a proxy.  
> 
> I'm assuming you mean a HTTP proxy for FTP like Squid.  In which case,
> you might get it work using an HTTP PUT command through urllib2.py.
> 
> PUT isn't part of urllib :|
> 
> But searching for 'urllib python http put'I found this
> http://infomesh.net/2001/QuickPut/QuickPut.txt
> Which uses urllib/urllib2.  And urllib will work through a proxy.
> 
> So it's not inconceivable that you could get something to work.
> [...]

Interesting. But I can't get it to work. Isn't there a small example 
somewhere? QuickPut seems not to be the right one...

Thanks
Martin



More information about the Python-list mailing list