4c08e26ebd9f59b8e2ccfeb223f66d3af4de8d63
[platform/upstream/curl.git] / tests / data / test74
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 {} list
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <data nocheck="yes">
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
22
23 -foo-
24 </data>
25 <data1>
26 HTTP/1.0 200 OK
27 Content-Type: text/html
28 Funny-head: swsclose
29 Connection: close
30
31 crap data
32 </data1>
33 </reply>
34
35 #
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>
48
49 #
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\r
57 Host: %HOSTIP:%HTTPPORT\r
58 Accept: */*\r
59 \r
60 GET /740001 HTTP/1.1\r
61 Host: %HOSTIP:%HTTPPORT\r
62 Accept: */*\r
63 \r
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
70
71 crap data
72 </file>
73 </verify>
74 </testcase>