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:
@@ -178,7 +178,7 @@ http
|
||||
HTTP GET deflate transfer-encoded content
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/1123 -H "TE: deflate, gzip"
|
||||
http://%HOSTIP:%HTTPPORT/1123 --tr-encoding
|
||||
</command>
|
||||
</client>
|
||||
|
||||
@@ -193,7 +193,7 @@ GET /1123 HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
Accept: */*
|
||||
Connection: TE
|
||||
TE: deflate, gzip
|
||||
TE: gzip
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
||||
Reference in New Issue
Block a user