diff options
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 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) |