Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test74
blobd89e9a18d6922630cf27347b7c85a97698ef7350
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 {} list
7 </keywords>
8 </info>
10 # Server-side
11 <reply>
12 <data nocheck="1">
13 HTTP/1.1 200 OK
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17 ETag: "21025-dc7-39462498"
18 Accept-Ranges: bytes
19 Content-Length: 6
20 Content-Type: text/html
21 Funny-head: yesyes
23 -foo-
24 </data>
25 <data1>
26 HTTP/1.0 200 OK
27 Content-Type: text/html
28 Funny-head: swsclose
29 Connection: close
31 crap data
32 </data1>
33 </reply>
36 # Client-side
37 <client>
38 <server>
39 http
40 </server>
41  <name>
42 HTTP, urlglob {}-retrieval and -o #[num] usage
43  </name>
44  <command option="no-output">
45 "http://%HOSTIP:%HTTPPORT/{74,740001}" -o "log/dumpit#1.dump"
46 </command>
47 </client>
50 # Verify data after the test has been "shot"
51 <verify>
52 <strip>
53 ^User-Agent:.*
54 </strip>
55 <protocol>
56 GET /74 HTTP/1.1
57 Host: %HOSTIP:%HTTPPORT
58 Accept: */*
60 GET /740001 HTTP/1.1
61 Host: %HOSTIP:%HTTPPORT
62 Accept: */*
64 </protocol>
65 <file name="log/dumpit740001.dump">
66 HTTP/1.0 200 OK
67 Content-Type: text/html
68 Funny-head: swsclose
69 Connection: close
71 crap data
72 </file>
73 </verify>
74 </testcase>