cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Force SSL for Active Mode FTPS does not force
Date: Mon, 9 Mar 2009 21:26:33 -0700 (PDT)
Hello, I am using curl version 7.12.3 on a Linux box. I have access to a command line version of curl 7.15.5 and tested with that also (I know it is a little outdated). I am attempting to write code to do an explicit ftps using active mode. My code uses the flags:
curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_CONTROL);
which I translated to this for the command line utility:
curl --ftp-ssl --verbose --ftp-port - -disable-eprt --insecure ftp://<ip>/tmp
I have two ftp servers, one is setup to accept FTPS the other is not. When I run the above command against the FTPS server, I successfully connect via FTPS.
curl --ftp-ssl --verbose --ftp-port - -disable-eprt --insecure --user xxx:xxx ftp://<ftpsServer>/tmp
When I connect to the FTP only server, I successfully connect. However, I thought the behavior of setting --ftp-ssl or the "CURLOPT_FTP_SSL/CURLOPT_USE_SSL" flag should result in the error "CURLE_USE_SSL_FAILED" to be returned if unable to connect via SSL.
curl --ftp-ssl --verbose --ftp-port - -disable-eprt --insecure --user xxx:xxx ftp://<ftpOnlyServer>/tmp
Am I forgetting something? Any help would be appreciated. If this is fixed in a later release, do you know the version? I need approval before I can request a more recent version to be installed (I know it is a hassle). Thanks.
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info