• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<protocol>
43POST /515 HTTP/1.1
44Host: %HOSTIP:%HTTPPORT
45Accept: */*
46Content-Length: 0
47Content-Type: application/x-www-form-urlencoded
48
49</protocol>
50</verify>
51</testcase>
52