2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2012-11-20 00:54:52 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
2017-05-14 04:35:15 +08:00
|
|
|
chunked Transfer-Encoding
|
2012-11-20 00:54:52 +08:00
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-01-30 17:25:45 +08:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
2014-02-01 07:58:58 +08:00
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-02-01 07:58:58 +08:00
|
|
|
Server: test-server/fake swsclose
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
2004-01-30 17:25:45 +08:00
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2004-01-30 17:25:45 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
send HTTP POST using read callback, using chunked transfer-encoding
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2004-01-30 17:25:45 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-02-09 20:46:41 +08:00
|
|
|
Accept: */*
|
2004-01-30 17:25:45 +08:00
|
|
|
Transfer-Encoding: chunked
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
2009-12-08 04:25:17 +08:00
|
|
|
Expect: 100-continue
|
2004-01-30 17:25:45 +08:00
|
|
|
|
|
|
|
3
|
2004-11-29 20:01:07 +08:00
|
|
|
one
|
2004-01-30 17:25:45 +08:00
|
|
|
3
|
2004-11-29 20:01:07 +08:00
|
|
|
two
|
2004-01-30 17:25:45 +08:00
|
|
|
5
|
2004-11-29 20:01:07 +08:00
|
|
|
three
|
2021-05-04 08:29:40 +08:00
|
|
|
%if hyper
|
|
|
|
1D
|
|
|
|
%else
|
2004-01-30 17:25:45 +08:00
|
|
|
1d
|
2021-05-04 08:29:40 +08:00
|
|
|
%endif
|
2004-11-29 20:01:07 +08:00
|
|
|
and a final longer crap: four
|
2004-01-30 17:25:45 +08:00
|
|
|
0
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|