2007-01-23 02:25:56 +00:00
|
|
|
<testcase>
|
2005-04-22 21:59:08 +00:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
chunked Transfer-Encoding
|
2008-06-21 17:56:48 +00:00
|
|
|
config file
|
2005-04-22 21:59:08 +00:00
|
|
|
-A
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2002-12-10 13:00:32 +00:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2006-11-25 13:32:04 +00:00
|
|
|
HTTP/1.0 200 OK swsclose
|
2002-12-10 13:00:32 +00:00
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
This is the proof it works
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 20:25:39 +00:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2002-12-10 13:00:32 +00: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-04 00:03:02 +02:00
|
|
|
-A "%repeat[99999 x a]%"
|
2002-12-10 13:00:32 +00:00
|
|
|
#
|
|
|
|
</stdin>
|
|
|
|
<command>
|
2004-09-08 08:08:38 +00:00
|
|
|
-K - %HOSTIP:%HTTPPORT/that.site.com/56
|
2002-12-10 13:00:32 +00:00
|
|
|
</command>
|
2005-01-25 21:45:03 +00:00
|
|
|
</client>
|
2002-12-10 13:00:32 +00:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
POST /that.site.com/56 HTTP/1.1
|
2007-09-14 19:32:31 +00:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-04 00:03:02 +02:00
|
|
|
User-Agent: %repeat[99999 x a]%
|
2004-02-09 12:46:41 +00:00
|
|
|
Accept: */*
|
2002-12-10 13:00:32 +00:00
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2020-12-14 14:10:33 +01:00
|
|
|
%if hyper
|
|
|
|
C
|
|
|
|
%else
|
2002-12-10 13:00:32 +00:00
|
|
|
c
|
2020-12-14 14:10:33 +01:00
|
|
|
%endif
|
2002-12-10 13:00:32 +00:00
|
|
|
we post this
|
|
|
|
0
|
2004-01-28 17:07:22 +00:00
|
|
|
|
2002-12-10 13:00:32 +00:00
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 02:25:56 +00:00
|
|
|
</testcase>
|