cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP transfers through a proxy

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 4 Dec 2004 22:59:56 +0100 (CET)

On Sat, 4 Dec 2004, Mongi Abdelmoula wrote:

> CONNECT servername:21 HTTP/1.0
>
> HTTP/1.0 403 Forbidden
> Date: Sat, 04 Dec 2004 12:08:09 GMT
> Content-Length: 3972
> Content-Type: text/html
> Server: NetCache appliance (NetApp/5.6.1D11)
> Connection: keep-alive

This shows the proxy not allowing you to CONNECT to port 21 on a remote
machine.

> Total Commander is an interface that shows ftp connection.
>
> When ethearealing the two requests first from Total Commander and second
> with upload(LibCurlNet), I remark that in the first case the proxy receive
> this request
>
> GET ftp://username:password@servername/ HTTP/1.0 (Correct Request)

This is not an upload. You can make libcurl do this as well, just switch off
the proxytunnel option. But again: this is not an upload so the comparison is
moot.

So, can that tool do FTP upload over your HTTP proxy or not?

> So Upload doesn't send really a Get command.

You don't "upload" with GET.

> Also proxy hasn't receive username & pasword useful to ftp connection´: Any
> packet contain username or password.

No it doesn't. CONNECT expects the proxy to connect to the remote server and
then libcurl would proceed and communicate with that.

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