curl-library
Re: Libcurl uses HTTP GET command while using ftp protocol via proxy server
Date: Tue, 19 May 2015 23:30:04 +0200 (CEST)
On Tue, 19 May 2015, Munirathinam Yuvaraj via curl-library wrote:
> Hi I tried to connect a ftp server using libcurl via a proxy server.In my
> code I had made settings for ftp protocol, it was able to connect with the
> server but unable to list directories and files present on the Server. When
> I scrutinzed the output available on the command window, foundĀ GET /
> HTTP/1.1
That's because you asked to use a *HTTP* proxy, which means curl speaks HTTP
over it.
You can sometimes as the proxy to get a connection tunneled through, which you
then can can use to speak FTP with a proxy. See CURLOPT_HTTPPROXYTUNNEL[1] for
that.
[1] = http://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-19