curl-library
Re: FTP transfers through a proxy
Date: Fri, 3 Dec 2004 14:31:55 -0000
>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 !!
Maybe because your "HTTP proxy" is also a FTP proxy :|
Because this is 2 different protocols.
For example in your IE or FF did you set only the HTTP proxy or you have set also a FTP proxy ?
In this case I bet you should simply set the proxy as FTP and not HTTP in your code :)
____________________
<Gu>[W]ill[i]a<u>m<e>
http://www.lacde.net
----- Original Message -----
From: Mongi Abdelmoula
To: libcurl development
Sent: Friday, December 03, 2004 2:19 PM
Subject: Re: FTP transfers through a proxy
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 !
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.789 / Virus Database: 534 - Release Date: 10/11/2004
Received on 2004-12-03