mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:23:53 +03:00
transfer-encoding: added new option and cmdline
Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
This commit is contained in:
parent
ebb37eac8b
commit
8e4fb01e64
11 changed files with 61 additions and 24 deletions
|
|
@ -48,7 +48,7 @@ http
|
|||
HTTP GET gzip transfer-encoded content
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/1122 -H "TE: gzip"
|
||||
http://%HOSTIP:%HTTPPORT/1122 --tr-encoding
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue