cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 3 Dec 2004 14:58:26 +0100 (CET)

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
Received on 2004-12-03