diff options
author | Daniel Stenberg <daniel@haxx.se> | 2011-04-14 22:45:42 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-04-18 19:46:21 +0200 |
commit | 8e4fb01e64bee1893452f25873758cb856898d84 (patch) | |
tree | 8b94999d472b201d98f1d72144a10d8afc8c6675 /tests | |
parent | ebb37eac8ba8caca5282c41635e491f19fe7df48 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/test1122 | 2 | ||||
-rw-r--r-- | tests/data/test1123 | 4 | ||||
-rw-r--r-- | tests/data/test1124 | 2 | ||||
-rw-r--r-- | tests/data/test1125 | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/data/test1122 b/tests/data/test1122 index a246c62e3..78d50d77b 100644 --- a/tests/data/test1122 +++ b/tests/data/test1122 @@ -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> diff --git a/tests/data/test1123 b/tests/data/test1123 index cfd843dae..3172fedb1 100644 --- a/tests/data/test1123 +++ b/tests/data/test1123 @@ -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> diff --git a/tests/data/test1124 b/tests/data/test1124 index d8b4f9ae7..d860bee13 100644 --- a/tests/data/test1124 +++ b/tests/data/test1124 @@ -47,7 +47,7 @@ http HTTP GET gzip+chunked transfer-encoded content </name> <command> -http://%HOSTIP:%HTTPPORT/1124 -H "TE: gzip" +http://%HOSTIP:%HTTPPORT/1124 --tr-encoding </command> </client> diff --git a/tests/data/test1125 b/tests/data/test1125 index e4d116cac..1883734d9 100644 --- a/tests/data/test1125 +++ b/tests/data/test1125 @@ -48,7 +48,7 @@ http HTTP GET transfer-encoding with custom Connection: </name> <command> -http://%HOSTIP:%HTTPPORT/1125 -H "TE: gzip" -H "Connection: close" +http://%HOSTIP:%HTTPPORT/1125 --tr-encoding -H "Connection: close" </command> </client> |