cURL / Mailing Lists / curl-library / Single Mail

curl-library

reuse CURL ?

From: 黃碩達 <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);
/**/

=====
國立中山大學資訊工程學系.Huang Shuo-Da(黃碩達)
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
更即時有趣的即時通訊�@界,立即下載最新版!
http://tw.messenger.yahoo.com/
Received on 2004-10-28