9bc175bd4cdf31fd3a77085a42ebc17a2a7601c1
[platform/upstream/curl.git] / tests / data / test516
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
8
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 200 OK swsclose\r
14 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
15 Server: test-server/fake\r
16 Content-Length: 3\r
17 \r
18 OK
19 </data>
20 </reply>
21
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27 # tool is what to use instead of 'curl'
28 <tool>
29 lib516
30 </tool>
31
32  <name>
33 make a HTTPPOST set to NULL
34  </name>
35  <command>
36 http://%HOSTIP:%HTTPPORT/516
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>
47 POST /516 HTTP/1.1\r
48 Host: %HOSTIP:%HTTPPORT\r
49 Accept: */*\r
50 Content-Length: 0\r
51 \r
52 </protocol>
53 </verify>
54 </testcase>