aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/httpcustomheader.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-01-12 21:29:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-01-12 21:29:23 +0000
commit79a91b8168056002705c9f0aebcb1a6b323a1b4c (patch)
treef31ae03f764dd7c696e7a39e75057e39b52f0512 /docs/examples/httpcustomheader.c
parent2f9038bf629335d0b23a7bde2e002bf587a2cd33 (diff)
make this example not only replace an internal header but also add a totally
new and non-standard one
Diffstat (limited to 'docs/examples/httpcustomheader.c')
-rw-r--r--docs/examples/httpcustomheader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/examples/httpcustomheader.c b/docs/examples/httpcustomheader.c
index 13e62e657..1551fafe2 100644
--- a/docs/examples/httpcustomheader.c
+++ b/docs/examples/httpcustomheader.c
@@ -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");