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