1<testcase>
2#
3# Server-side
4<reply>
5<data mode="text">
6HTTP/1.1 200 OK swsclose
7Date: Thu, 09 Nov 2010 14:49:00 GMT
8Server: test-server/fake
9Content-Length: 3
10
11OK
12</data>
13</reply>
14
15# Client-side
16<client>
17<server>
18http
19</server>
20# tool is what to use instead of 'curl'
21<tool>
22lib515
23</tool>
24
25 <name>
26make a POSTFIELDS set to NULL with POSTFIELDSIZE set to zero
27 </name>
28 <command>
29http://%HOSTIP:%HTTPPORT/515
30</command>
31</client>
32
33#
34# Verify data after the test has been "shot"
35<verify>
36<strip>
37^User-Agent:.*
38</strip>
39<protocol>
40POST /515 HTTP/1.1
41Host: %HOSTIP:%HTTPPORT
42Accept: */*
43Content-Length: 0
44Content-Type: application/x-www-form-urlencoded
45
46</protocol>
47</verify>
48</testcase>
49