mirror of
https://github.com/curl/curl.git
synced 2025-04-18 16:30:45 +08:00
- allow and ignore "identity" as an encoding - fail if any other encoder than chunked follows after chunked - fail on unsolicited encodings - when the server encodes but curl did not ask for it Add test 1493 to 1496 to verify. Disable test 319 as that is now broken: issue #16974 Reported-by: Jonathan Rosa Fixes #16956 Closes #16959
54 lines
754 B
Plaintext
54 lines
754 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
chunked Transfer-Encoding
|
|
DELAY
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data crlf="yes" nocheck="yes">
|
|
HTTP/1.1 200 funky chunky!
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
Transfer-Encoding: gzip, chunked
|
|
Content-Length: 19
|
|
|
|
stuff server sends
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP GET with gzip + chunked transfer-encoding without being asked
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -D %LOGDIR/heads%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
<errorcode>
|
|
61
|
|
</errorcode>
|
|
</verify>
|
|
|
|
</testcase>
|