1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP POST
POST callback
huge request header
</keywords>
</info>
# Server-side
<reply>
<data crlf="headers">
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>
lib%TESTNUMBER
</tool>
<features>
</features>
<name>
HTTP post with huge request headers and post data from callback
</name>
<command>
http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER
</command>
</client>
# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers" nonewline="yes">
POST /path/%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*
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]%
Content-Length: 40960
Content-Type: application/x-www-form-urlencoded
%repeat[40960 x A]%
</protocol>
</verify>
</testcase>
|