1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-12 04:25:08 -05:00

header.d: mention the "Transfer-Encoding: chunked" handling

Ref: #6144
Closes #6148
This commit is contained in:
Daniel Stenberg 2020-10-30 12:05:47 +01:00
parent c131148b69
commit 1144886f38
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -4,6 +4,7 @@ Arg: <header/@file>
Help: Pass custom header(s) to server Help: Pass custom header(s) to server
Protocols: HTTP Protocols: HTTP
Category: http Category: http
See-also: --user-agent --referer
--- ---
Extra header to include in the request when sending HTTP to a server. You may Extra header to include in the request when sending HTTP to a server. You may
specify any number of extra headers. Note that if you should add a custom specify any number of extra headers. Note that if you should add a custom
@ -18,17 +19,18 @@ as \-H \&"X-Custom-Header;" to send "X-Custom-Header:".
curl will make sure that each header you add/replace is sent with the proper curl will make sure that each header you add/replace is sent with the proper
end-of-line marker, you should thus \fBnot\fP add that as a part of the header end-of-line marker, you should thus \fBnot\fP add that as a part of the header
content: do not add newlines or carriage returns, they will only mess things up content: do not add newlines or carriage returns, they will only mess things
for you. up for you.
Starting in 7.55.0, this option can take an argument in @filename style, which This option can take an argument in @filename style, which then adds a header
then adds a header for each line in the input file. Using @- will make curl for each line in the input file. Using @- will make curl read the header file
read the header file from stdin. from stdin. Added in 7.55.0.
See also the --user-agent and --referer options. You need --proxy-header to send custom headers intended for a HTTP
proxy. Added in 7.37.0.
Starting in 7.37.0, you need --proxy-header to send custom headers intended Passing on a "Transfer-Encoding: chunked" header when doing a HTTP request
for a proxy. with a requst body, will make curl send the data using chunked encoding.
Example: Example: