title: ftp over ssl by libcurl in windows
body: <p>everyone!</p>
  
  <p>I'm yanrk, I get a problem:</p>
  
  <p>the FTP server force SSL for user login</p>
  
  <p>so I code like this:</p>
  
  <pre><code>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);
  </code></pre>
  
  <p>when I run with this code, I get message:</p>
  
  <ul>
  <li>About to connect() to 127.0.0.1 port 990 (#0)</li>
  <li>Trying 127.0.0.1...</li>
  <li>Adding handle: conn: 0x3ff480</li>
  <li>Adding handle: send: 0</li>
  <li>Adding handle: recv: 0</li>
  <li>Curl_addHandleToPipeline: length: 1</li>
  <li><ul>
  <li>Conn 0 (0x3ff480) send_pipe: 1, recv_pipe: 0</li>
  </ul></li>
  <li>Connected to 127.0.0.1 (127.0.0.1) port 990 (#0)</li>
  </ul>
  
  <p>It blocking here, not to auth ssl/tls</p>
  
  <p>I search so many pages, and try with them, but alway failed</p>
  
  <p>So, anyone know how to fix this code? </p>
  
  <p>Thanks! </p>