diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-12-08 14:13:19 +0000 |
commit | f68219ddaab9dab05a195a6fd126b4edb5ecccdc (patch) | |
tree | e80e2c7b14185d28b9b7ea246628a364cb452896 /docs/examples/ftpgetresp.c | |
parent | 7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff) | |
download | curl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.tar.gz |
use the newer option names
Diffstat (limited to 'docs/examples/ftpgetresp.c')
-rw-r--r-- | docs/examples/ftpgetresp.c | 2 |
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); |