2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-04-22 17:59:08 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
chunked Transfer-Encoding
|
2008-06-21 13:56:48 -04:00
|
|
|
config file
|
2005-04-22 17:59:08 -04:00
|
|
|
-A
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2002-12-10 08:00:32 -05:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2006-11-25 08:32:04 -05:00
|
|
|
HTTP/1.0 200 OK swsclose
|
2002-12-10 08:00:32 -05:00
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
This is the proof it works
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 16:25:39 -04:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2002-12-10 08:00:32 -05:00
|
|
|
<name>
|
|
|
|
HTTP POST with *HUGE* request and chunked transfer-encoding
|
|
|
|
</name>
|
|
|
|
<stdin>
|
|
|
|
#
|
|
|
|
data "we post this"
|
|
|
|
#
|
|
|
|
# enforce chunky post!
|
|
|
|
header "Transfer-Encoding: chunked"
|
|
|
|
#
|
|
|
|
# Set the user-agent using a short-option:
|
2020-10-03 18:03:02 -04:00
|
|
|
-A "%repeat[99999 x a]%"
|
2002-12-10 08:00:32 -05:00
|
|
|
#
|
|
|
|
</stdin>
|
|
|
|
<command>
|
2021-03-12 11:38:26 -05:00
|
|
|
-K - %HOSTIP:%HTTPPORT/that.site.com/%TESTNUMBER
|
2002-12-10 08:00:32 -05:00
|
|
|
</command>
|
2005-01-25 16:45:03 -05:00
|
|
|
</client>
|
2002-12-10 08:00:32 -05:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 11:38:26 -05:00
|
|
|
POST /that.site.com/%TESTNUMBER HTTP/1.1
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-03 18:03:02 -04:00
|
|
|
User-Agent: %repeat[99999 x a]%
|
2004-02-09 07:46:41 -05:00
|
|
|
Accept: */*
|
2002-12-10 08:00:32 -05:00
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2020-12-14 08:10:33 -05:00
|
|
|
%if hyper
|
|
|
|
C
|
|
|
|
%else
|
2002-12-10 08:00:32 -05:00
|
|
|
c
|
2020-12-14 08:10:33 -05:00
|
|
|
%endif
|
2002-12-10 08:00:32 -05:00
|
|
|
we post this
|
|
|
|
0
|
2004-01-28 12:07:22 -05:00
|
|
|
|
2002-12-10 08:00:32 -05:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|