]> granicus.if.org Git - curl/commitdiff
Rene Bernhardt's corrections
authorDaniel Stenberg <daniel@haxx.se>
Wed, 14 Dec 2005 13:10:14 +0000 (13:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 14 Dec 2005 13:10:14 +0000 (13:10 +0000)
docs/examples/post-callback.c

index ecffce3033c26e2245c844d09ec41ccf7564a2b8..1da88a8afc37b741ce5821c41546d9ad493a5fab 100644 (file)
@@ -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 */
     }