cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Mongi Abdelmoula <mongi_abdelmoula_at_yahoo.fr>
Date: Fri, 3 Dec 2004 15:19:48 +0100 (CET)

I've used the CURLOPT_HTTPPROXYTUNNEL option, but I have the same problem.

easy.SetOpt(CURLoption.CURLOPT_HTTPPROXYTUNNEL, True)

easy.SetOpt(CURLoption.CURLOPT_PROXY, args(2))

I use Total Commander and he can perfectly upload with FTP over an HTTP proxy. Now I want to make this by code.
Any idea !!

Daniel Stenberg <daniel-curl_at_haxx.se> wrote:
On Fri, 3 Dec 2004, Mongi Abdelmoula wrote:

> Upload srcFile ftp://servername http://proxyserver:81 username password
>
> the proxy doen't need authentification. Username and password are those of
> the ftp server connection. But, i always have the error "HTTP/1.0 403
> Forbidden". and the upload isn't performed.

You cannot normally upload with FTP over a HTTP proxy.

The only way it can be made to work is if you are allowed to CONNECT through
it to the remote server. Most HTTP proxies are configured not to allow that
(i.e they often only allow CONNECT to specific ports, like 443). See the
CURLOPT_HTTPPROXYTUNNEL option.

-- 
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
		
---------------------------------
 Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail
  Avec Yahoo! faites un don et soutenez le Téléthon !
Received on 2004-12-03