CURLOPT_HTTPHEADER.md: add comments to the example
This commit is contained in:
parent
af0100fc17
commit
d6aa4aa681
@ -167,9 +167,15 @@ int main(void)
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
||||
|
||||
/* add this header */
|
||||
list = curl_slist_append(list, "Shoesize: 10");
|
||||
|
||||
/* remove this header */
|
||||
list = curl_slist_append(list, "Accept:");
|
||||
|
||||
/* change this header */
|
||||
list = curl_slist_append(list, "Host: example.net");
|
||||
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, list);
|
||||
|
||||
curl_easy_perform(curl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user