mirror of https://github.com/moparisthebest/curl
make this example not only replace an internal header but also add a totally
new and non-standard one
This commit is contained in:
parent
2f9038bf62
commit
79a91b8168
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue