summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-10-08 13:44:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-10-08 13:44:10 +0200
commit5c6a6165f399bb0879ff4d6b90501d95894dfbd9 (patch)
tree4b10f0e8e583d95b652c372a150a3167ef0b25fb
parent9597d2def7435bf31966d3179ff37d95c613e9b2 (diff)
downloadcurl-bagder/CURLOPT_HTTPHEADER-more.tar.gz
CURLOPT_HTTPHEADER.3: add descripion for specific headersbagder/CURLOPT_HTTPHEADER-more
Settting Host: or Transfer-Encoding: chunked actually have special meanings to libcurl. This change tries to document them
-rw-r--r--docs/libcurl/opts/CURLOPT_HTTPHEADER.310
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/libcurl/opts/CURLOPT_HTTPHEADER.3 b/docs/libcurl/opts/CURLOPT_HTTPHEADER.3
index 8e3994beb..685f6a44d 100644
--- a/docs/libcurl/opts/CURLOPT_HTTPHEADER.3
+++ b/docs/libcurl/opts/CURLOPT_HTTPHEADER.3
@@ -68,6 +68,16 @@ The most commonly replaced headers have "shortcuts" in the options
There's an alternative option that sets or replaces headers only for requests
that are sent with CONNECT to a proxy: \fICURLOPT_PROXYHEADER(3)\fP. Use
\fICURLOPT_HEADEROPT(3)\fP to control the behavior.
+.SH SPECIFIC HEADERS
+Setting some specific headers will cause libcurl to act differently.
+.IP "Host:"
+The specified host name will be used for cookie matching if the cookie engine
+is also enabled for this transfer. If the request is done over HTTP/2 or
+HTTP/3, the custom host name will instead be used in the ":authority" header
+field and Host: will not be sent at all over the wire.
+.IP "Transfer-Encoding: chunked"
+Tells libcurl the upload is to be done using this chunked encoding instead of
+providing the Content-Length: field in the request.
.SH SECURITY CONCERNS
By default, this option makes libcurl send the given headers in all HTTP
requests done by this handle. You should therefore use this option with