2008-01-17 06:54:54 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
POST callback
|
|
|
|
huge request header
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 Fine!
|
|
|
|
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool to use
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2008-01-17 06:54:54 +08:00
|
|
|
</tool>
|
|
|
|
<features>
|
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
HTTP post with huge request headers and post data from callback
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER
|
2008-01-17 06:54:54 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol nonewline="yes">
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /path/%TESTNUMBER HTTP/1.1
|
2008-01-29 20:31:11 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2008-01-17 06:54:54 +08:00
|
|
|
Accept: */*
|
2020-10-04 06:03:02 +08:00
|
|
|
Header0: %repeat[5000 x A]%
|
|
|
|
Header1: %repeat[5000 x A]%
|
|
|
|
Header2: %repeat[5000 x A]%
|
|
|
|
Header3: %repeat[5000 x A]%
|
|
|
|
Header4: %repeat[5000 x A]%
|
|
|
|
Header5: %repeat[5000 x A]%
|
|
|
|
Header6: %repeat[5000 x A]%
|
|
|
|
Header7: %repeat[5000 x A]%
|
2008-01-17 06:54:54 +08:00
|
|
|
Content-Length: 40960
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2020-10-04 06:03:02 +08:00
|
|
|
%repeat[40960 x A]%
|
2008-01-17 06:54:54 +08:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|