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/fopen.c | |
parent | 7e3cd82b5028546cff19bfc8fcb95c5001c26d33 (diff) | |
download | curl-f68219ddaab9dab05a195a6fd126b4edb5ecccdc.tar.gz |
use the newer option names
Diffstat (limited to 'docs/examples/fopen.c')
-rw-r--r-- | docs/examples/fopen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c index 452995bc3..272c1ad87 100644 --- a/docs/examples/fopen.c +++ b/docs/examples/fopen.c @@ -236,7 +236,7 @@ url_fopen(char *url,const char *operation) file->handle.curl = curl_easy_init(); curl_easy_setopt(file->handle.curl, CURLOPT_URL, url); - curl_easy_setopt(file->handle.curl, CURLOPT_FILE, file); + curl_easy_setopt(file->handle.curl, CURLOPT_WRITEDATA, file); curl_easy_setopt(file->handle.curl, CURLOPT_VERBOSE, FALSE); curl_easy_setopt(file->handle.curl, CURLOPT_WRITEFUNCTION, write_callback); |