aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/ftpgetresp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-12-08 14:13:19 +0000
commitf68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch)
treee80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/ftpgetresp.c
parent7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff)
use the newer option names
Diffstat (limited to 'docs/examples/ftpgetresp.c')
-rw-r--r--docs/examples/ftpgetresp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/ftpgetresp.c b/docs/examples/ftpgetresp.c
index eb56e19d2..82b1d36a7 100644
--- a/docs/examples/ftpgetresp.c
+++ b/docs/examples/ftpgetresp.c
@@ -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);