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