]> granicus.if.org Git - curl/commitdiff
curl_easy_setopt.3: HTTP header with no content
authorPeter Gal <galpeter@inf.u-szeged.hu>
Fri, 7 Jun 2013 14:39:16 +0000 (16:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 7 Jun 2013 22:15:40 +0000 (00:15 +0200)
Update the documentation on how to specify a HTTP header with no
content.

docs/libcurl/curl_easy_setopt.3

index 742f3a18a2fcd173269d9b430615fe4f4fddf286..3b804a1f6ed756be245eb095375beb0d7a322a3d 100644 (file)
@@ -1436,10 +1436,12 @@ 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 (nothing to the right side of the colon), 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