From f68219ddaab9dab05a195a6fd126b4edb5ecccdc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 Dec 2003 14:13:19 +0000 Subject: use the newer option names --- docs/examples/fopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/fopen.c') 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); -- cgit v1.2.3