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 13e62e6..1551faf 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");