f9b17f37c73f8d46db937b7c13eea01101451462
[platform/upstream/curl.git] / tests / data / test500
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply name="1">
11 <data mode="text">
12 HTTP/1.1 200 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16 ETag: "21025-dc7-39462498"
17 Accept-Ranges: bytes
18 Content-Length: 6
19 Connection: close
20 Content-Type: text/html
21 Funny-head: yesyes
22
23 -foo-
24 </data>
25 </reply>
26
27 # Client-side
28 <client>
29 <server>
30 http
31 </server>
32 # tool is what to use instead of 'curl'
33 <tool>
34 lib500
35 </tool>
36
37  <name>
38 simple libcurl HTTP GET tool
39  </name>
40  <command>
41 http://%HOSTIP:%HTTPPORT/500 log/ip500
42 </command>
43 </client>
44
45 #
46 # Verify data after the test has been "shot"
47 <verify>
48 <file name="log/ip500" mode="text">
49 IP: %HOSTIP
50 </file>
51 <protocol>
52 GET /500 HTTP/1.1\r
53 Host: %HOSTIP:%HTTPPORT\r
54 Accept: */*\r
55 \r
56 </protocol>
57 </verify>
58 </testcase>