1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

make this example not only replace an internal header but also add a totally

new and non-standard one
This commit is contained in:
Daniel Stenberg 2009-01-12 21:29:23 +00:00
parent 2f9038bf62
commit 79a91b8168

View 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");