diff --git a/docs/libcurl/opts/CURLOPT_HTTPHEADER.md b/docs/libcurl/opts/CURLOPT_HTTPHEADER.md index 628e1dfedf..4440b4ec4b 100644 --- a/docs/libcurl/opts/CURLOPT_HTTPHEADER.md +++ b/docs/libcurl/opts/CURLOPT_HTTPHEADER.md @@ -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);