mirror of
https://github.com/curl/curl.git
synced 2026-06-13 17:55:38 +03:00
Even when two 'chunked' are listed and neither is the last encoding the transfer is rejected. Verified by test 1722 and 1723 Reported-by: violet12331 on hackerone Closes #21966
61 lines
993 B
XML
61 lines
993 B
XML
<?xml version="1.0" encoding="US-ASCII"?>
|
|
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
chunked Transfer-Encoding
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
HTTP/1.1 200 funky chunky!
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
Transfer-Encoding: chunked, another
|
|
Connection: mooo
|
|
|
|
40%CR
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa%CR
|
|
30%CR
|
|
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb%CR
|
|
21;heresatest=moooo%CR
|
|
cccccccccccccccccccccccccccccccc
|
|
%CR
|
|
0%CR
|
|
%CR
|
|
</data>
|
|
<datacheck>
|
|
HTTP/1.1 200 funky chunky!
|
|
Server: fakeit/0.9 fakeitbad/1.0
|
|
</datacheck>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP with chunked Transfer-Encoding not listed last
|
|
</name>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol crlf="headers">
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
User-Agent: curl/%VERSION
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
<errorcode>
|
|
61
|
|
</errorcode>
|
|
</verify>
|
|
|
|
</testcase>
|