curl-library
Libcurl uses HTTP GET command while using ftp protocol via proxy server
Date: Tue, 19 May 2015 18:41:24 +0000 (UTC)
HiI 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.1Usage of HTTP command will result in modifying my program code at many locations, for the time being this is not feasible for me.I do not want to use any HTTP command, is there any way to force libcurl to use only ftp commands?Is there any curl_easy_setopt options that can be helpful to me?
Below I have pasted the output information that was available on the command window.
Trying 10.224.24.250... connected* Establish HTTP proxy tunnel to nhanzevideo.com:21* Server auth using Basic with user 'matrix'> CONNECT nhanzevideo.com:21 HTTP/1.1> Host: nhanzevideo.com:21> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Proxy-Connection: Keep-Alive> < HTTP/1.1 200 OK< Server: FreeProxy/4.50< Date: Tue, 19 May 2015 18:00:12 GMT< Content-Type: application/octet-stream< * Proxy replied OK to CONNECT request* Server auth using Basic with user 'matrix'> GET / HTTP/1.1> Authorization: Basic bWF0cml4Om1hdHJpeA==> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3> Host: nhanzevideo.com:21> Accept: */*> 220-FileZilla Server version 0.9.43 beta220-written by Tim Kosse (tim.kosse@filezilla-project.org)220 Please visit http://sourceforge.net/projects/filezilla/* Connection #0 to host 10.224.24.250 left intact* Closing connection #0
Thanks & RegardsYuvaraj
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-19