mirror of
https://github.com/curl/curl.git
synced 2025-01-24 14:15:18 +08:00
f867942511
with more than one transfer-encoding, 'chunked' must be the last added to the writer stack (and therefore the first to decode). RFC 9112, ch. 6.1. Closes #13736
64 lines
797 B
Plaintext
64 lines
797 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
Transfer-Encoding
|
|
</keywords>
|
|
</info>
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
HTTP/1.1 200 OK
|
|
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
|
Server: Apache
|
|
Transfer-Encoding: chunked, gzip
|
|
|
|
0
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
HTTP/1.1 200 OK
|
|
Date: Mon, 29 Nov 2004 21:56:53 GMT
|
|
Server: Apache
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<features>
|
|
libz
|
|
</features>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP transfer-encoding wrong order
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding
|
|
</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: */*
|
|
Connection: TE
|
|
TE: gzip
|
|
|
|
</protocol>
|
|
<errorcode>
|
|
61
|
|
</errorcode>
|
|
</verify>
|
|
</testcase>
|