curl-and-python
Re: FTP upload through HTTP proxy
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 8 Aug 2007 09:24:10 +0200 (CEST)
Date: Wed, 8 Aug 2007 09:24:10 +0200 (CEST)
On Wed, 8 Aug 2007, Kumar Appaiah wrote:
> I wish to upload to an FTP server through a HTTP proxy. Now, curl works fine
> with the following (after the proxy environment variable is set):
>
> curl --verbose -T file "ftp://username:password@ftp.myftp.com"
>
> How do I put it into pycurl code? The following gives me a (56,
> 'Received HTTP code 403 from proxy after CONNECT') error:
[...]
> c.setopt(pycurl.HTTPPROXYTUNNEL, True)
The command line version above doesn't use a proxy tunnel, which makes the
requests very different...
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-pythonReceived on 2007-08-08