From: Daniel Stenberg Date: Mon, 12 Jan 2009 21:29:23 +0000 (+0000) Subject: make this example not only replace an internal header but also add a totally X-Git-Tag: curl-7_19_3~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a91b8168056002705c9f0aebcb1a6b323a1b4c;p=curl make this example not only replace an internal header but also add a totally new and non-standard one --- 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");