aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/simplessl.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/simplessl.c')
-rw-r--r--docs/examples/simplessl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c
index 74c58461a..aefb79f62 100644
--- a/docs/examples/simplessl.c
+++ b/docs/examples/simplessl.c
@@ -75,7 +75,7 @@ int main(void)
if(curl) {
/* what call to write: */
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site");
- curl_easy_setopt(curl, CURLOPT_WRITEHEADER, headerfile);
+ curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile);
for(i = 0; i < 1; i++) /* single-iteration loop, just to break out from */
{