From 3ae2b6cd7ff6eda5c6856efb6b2cdf52b61e980c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 5 Jul 2014 16:59:12 +0200 Subject: Update instances of some obsolete CURLOPTs to their new names --- docs/examples/ftpgetresp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/ftpgetresp.c') diff --git a/docs/examples/ftpgetresp.c b/docs/examples/ftpgetresp.c index db96a3a13..dcb296adf 100644 --- a/docs/examples/ftpgetresp.c +++ b/docs/examples/ftpgetresp.c @@ -58,7 +58,7 @@ int main(void) /* If you intend to use this on windows with a libcurl DLL, you must use CURLOPT_WRITEFUNCTION as well */ curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response); - curl_easy_setopt(curl, CURLOPT_WRITEHEADER, respfile); + curl_easy_setopt(curl, CURLOPT_HEADERDATA, respfile); res = curl_easy_perform(curl); /* Check for errors */ if(res != CURLE_OK) -- cgit v1.2.3