cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 6 Dec 2004 13:58:40 +0100 (CET)

On Mon, 6 Dec 2004, Mongi Abdelmoula wrote:

> I Explain here the difference between requests send by LibCurl and request
> send by TotalCommader :
>
> - When I use LibCurl to upload a file, Libcurl send the request "CONNECT
> servername:21 HTTP/1.0" to proxy, this request is insufficient and the proxy
> returm me "HTTP/1.0 403 Forbidden".

And I keep telling you that libcurl does this because you have enabled
CURLOPT_HTTPPROXYTUNNEL. If you disable that option, you will instead make
libcurl use "ordinary" proxy-style requests.

> The question now : can I send the request "PUT
> ftp://user:password@servername/filename" using LibCurl?

Yes

> how?

Send a PUT to that URL, with a specified proxy. Do you even try reading the
docs?

Here's some links for you:

- http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTUPLOAD
- http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTINFILESIZE
- http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROXY

-- 
      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-06