| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Problem with FTP SSL
From: Михаил Шогин <shogin_m_at_mail.ru>
Date: Mon, 24 Oct 2005 14:35:34 +0400
Hi.
I want to use libcurl in my app.
I find somples for perl and make in for c++, but it don't work.
<CODE>
struct FtpFile {
int my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream)
int main(void)
curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30 );
curl_easy_setopt(curl, CURLOPT_URL, "ftp://192.168.11.32:990/test.pl" );
curl_easy_setopt(curl, CURLOPT_FTP_SSL, CURLFTPSSL_TRY);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_easy_setopt(curl, CURLOPT_SSLVERSION,2 );
// curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite );
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
res= curl_easy_perform(curl);
if(ftpfile.stream)
curl_global_cleanup();
return 0;
</CODE>
I use Serv-U with Allow only SSL/TLS sessions.
Can you help me?
Michael
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info