cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] curl_easy_setopt.3: HTTP header with no content

From: Peter Gal <galpeter_at_inf.u-szeged.hu>
Date: Fri, 7 Jun 2013 16:39:16 +0200

Update the documentation on how to specify a HTTP header with no content.

---
 docs/libcurl/curl_easy_setopt.3 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3
index 742f3a1..5ac69bc 100644
--- a/docs/libcurl/curl_easy_setopt.3
+++ b/docs/libcurl/curl_easy_setopt.3
@@ -1436,10 +1436,10 @@ internally, your added one will be used instead. If you add a header with no
 content as in 'Accept:' (no data on the right side of the colon), the
 internally used header will get disabled. Thus, using this option you can add
 new headers, replace internal headers and remove internal headers. To add a
-header with no content, make the content be two quotes: \&"". The headers
-included in the linked list must not be CRLF-terminated, because curl adds
-CRLF after each header item. Failure to comply with this will result in
-strange bugs because the server will most likely ignore part of the headers
+header with no content, use the form 'MyHeader;' (note the ending semicolon).
+The headers included in the linked list must not be CRLF-terminated, because
+curl adds CRLF after each header item. Failure to comply with this will result
+in strange bugs because the server will most likely ignore part of the headers
 you specified.
 
 The first line in a request (containing the method, usually a GET or POST) is
-- 
1.8.3
--------------020201070205020509030208
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
--------------020201070205020509030208--
Received on 2001-09-17