everyone!
I'm yanrk, I get a problem:
the FTP server force SSL for user login
so I code like this:
curl_easy_setopt(ftp_handle, CURLOPT_URL, "ftp://192.168.1.xxx:990");
curl_easy_setopt(ftp_handle, CURLOPT_USERNAME, "user");
curl_easy_setopt(ftp_handle, CURLOPT_PASSWORD, "password");
curl_easy_setopt(ftp_handle, CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(ftp_handle, CURLOPT_SSL_VERIFYHOST, 2L);
curl_easy_setopt(ftp_handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_DEFAULT);
curl_easy_setopt(ftp_handle, CURLOPT_FTPSSLAUTH, CURLFTPAUTH_SSL);
curl_easy_setopt(ftp_handle, CURLOPT_VERBOSE, 1L);
CURLcode res = curl_easy_perform(ftp_handle);
when I run with this code, I get message:
- About to connect() to 127.0.0.1 port 990 (#0)
- Trying 127.0.0.1...
- Adding handle: conn: 0x3ff480
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- Conn 0 (0x3ff480) send_pipe: 1, recv_pipe: 0
- Connected to 127.0.0.1 (127.0.0.1) port 990 (#0)
It blocking here, not to auth ssl/tls
I search so many pages, and try with them, but alway failed
So, anyone know how to fix this code?
Thanks!