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