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