use the newer option names

This commit is contained in:
Daniel Stenberg
2003-12-08 14:13:19 +00:00
parent 7e3cd82b50
commit f68219ddaa
7 changed files with 7 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ int main(int argc, char **argv)
if(curl) {
/* Get a file listing from sunet */
curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.sunet.se/");
curl_easy_setopt(curl, CURLOPT_FILE, ftpfile);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response);
curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile);
res = curl_easy_perform(curl);