diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-12-14 13:10:14 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-14 13:10:14 +0000 |
commit | 95330925115c073532160e6d480cec9ce433e043 (patch) | |
tree | 744da2d8566bb1855064addade320120f9f495ed /docs/examples/post-callback.c | |
parent | 6005a461bb76b2b5649cf4a63f67252a26f50f19 (diff) | |
download | curl-95330925115c073532160e6d480cec9ce433e043.tar.gz |
Rene Bernhardt's corrections
Diffstat (limited to 'docs/examples/post-callback.c')
-rw-r--r-- | docs/examples/post-callback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/post-callback.c b/docs/examples/post-callback.c index ecffce303..1da88a8af 100644 --- a/docs/examples/post-callback.c +++ b/docs/examples/post-callback.c @@ -78,7 +78,7 @@ int main(void) curl_slist *chunk = NULL; chunk = curl_slist_append(chunk, "Transfer-Encoding: chunked"); - res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER); + res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); /* use curl_slist_free_all() after the *perform() call to free this list again */ } @@ -101,7 +101,7 @@ int main(void) curl_slist *chunk = NULL; chunk = curl_slist_append(chunk, "Expect:"); - res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER); + res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk); /* use curl_slist_free_all() after the *perform() call to free this list again */ } |