cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Mongi Abdelmoula <mongi_abdelmoula_at_yahoo.fr>
Date: Mon, 6 Dec 2004 12:36:34 +0100 (CET)

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".
 
- When I use TotalCommander, it send request "PUT ftp://user:password@servername/filename" to proxy and the proxy handle correctly this request and the upload is performed.
 
The question now : can I send the request "PUT ftp://user:password@servername/filename" using LibCurl? how?
 
Thank you for your help !!

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

> When we want to upload a file through a proxy, no need to make :
> CONNECT servername:21 HTTP/1.0
> we should directly send the request
> PUT ftp://user:password@servername/filename

Gosh. That is one mighty clever proxy that understands how to convert that
into a FTP upload.

Very well, what happens if you try to make libcurl to PUT like this?

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