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