]> granicus.if.org Git - curl/commitdiff
make this example not only replace an internal header but also add a totally
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jan 2009 21:29:23 +0000 (21:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jan 2009 21:29:23 +0000 (21:29 +0000)
new and non-standard one

docs/examples/httpcustomheader.c

index 13e62e657f36237a3e22ad13e6ba4050bd2897b6..1551fafe27ec645c0727a299add2a6fce2a4cb6d 100644 (file)
@@ -21,6 +21,7 @@ int main(void)
     struct curl_slist *chunk = NULL;
 
     chunk = curl_slist_append(chunk, "Accept: moo");
+    chunk = curl_slist_append(chunk, "Another: yes");
 
     /* request with the built-in Accept: */
     curl_easy_setopt(curl, CURLOPT_URL, "localhost");