cURL / Mailing Lists / curl-library / Single Mail

curl-library

reuse CURL ?

From: ¶ÀºÓ¹F <huangsd2001_at_yahoo.com.tw>
Date: Thu, 28 Oct 2004 15:28:36 +0800 (CST)

Can I get more than one file in a session like this ?
curl_easy_setopt(curl,"ftps://www.abc.edu.tw/");
curl_easy_setopt(curl, CURLOPT_USERPWD,"name:pass");
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
fwrite_callback);
curl_easy_setopt(curl, CURLOPT_FTP_SSL ,
CURLFTPSSL_ALL );
curl_easy_setopt(curl, CURLOPT_WRITEDATA,
&(this->FileInfo));
curl_easy_setopt(curl, CURLOPT_FTPLISTONLY, TRUE);
curl_easy_setopt(curl, CURLOPT_VERBOSE, TRUE);
res = curl_easy_perform(curl);
/*below..*/
curl_easy_setopt(curl, CURLOPT_FTPLISTONLY, FALSE);
curl_easy_setopt(curl,"ftps://www.abc.edu.tw/TEST.TXT");
res = curl_easy_perform(curl);
curl_easy_setopt(curl,"ftps://www.abc.edu.tw/abc.TXT");
res = curl_easy_perform(curl);
/**/

=====
°ê¥ß¤¤¤s¤j¾Ç¸ê°T¤uµ{¾Ç¨t¡DHuang Shuo-Da¡]¶ÀºÓ¹F¡^
National Sun Yat-Sen University
Department of Computer Science Engineering
http://huangsd.dormf.nsysu.edu.tw/~startss
E-Mail:huangsd2001_at_yahoo.com.tw Tel:5254333

-----------------------------------------------------------------
Yahoo!©_¼¯Messenger6.0
§ó§Y®É¦³½ìªº§Y®É³q°T¥@¬É¡A¥ß§Y¤U¸ü³Ì·sª©¡I
http://tw.messenger.yahoo.com/
Received on 2004-10-28