Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test457: verify --max-filesize with chunked encoding
- Loading branch information
Showing
2 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<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 | ||
Connection: mooo | ||
|
||
40 | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa | ||
30 | ||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | ||
21;heresatest=moooo | ||
cccccccccccccccccccccccccccccccc | ||
|
||
0 | ||
|
||
</data> | ||
<datacheck> | ||
HTTP/1.1 200 funky chunky! | ||
Server: fakeit/0.9 fakeitbad/1.0 | ||
Transfer-Encoding: chunked | ||
Connection: mooo | ||
|
||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccc | ||
</datacheck> | ||
</reply> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
http | ||
</server> | ||
<name> | ||
chunked Transfer-Encoding with --max-filesize | ||
</name> | ||
<command> | ||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --max-filesize 143 | ||
</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> | ||
# curl: (63) Exceeded the maximum allowed file size (143) | ||
<errorcode> | ||
63 | ||
</errorcode> | ||
</verify> | ||
|
||
</testcase> |