Git init
[external/curl.git] / tests / data / test86
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 [] range
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 Connection: close
21 Content-Type: text/html
22 Funny-head: yesyes
23
24 -foo-
25 </data>
26 <data1>
27 HTTP/1.0 200 OK
28 Content-Type: text/html
29 Funny-head: swsclose
30
31 crap data
32 </data1>
33 <data2>
34 HTTP/1.0 200 OK
35 Content-Type: text/html
36 Funny-head: swsclose
37
38 crap data
39 </data2>
40 <data3>
41 HTTP/1.0 200 OK
42 Content-Type: text/html
43 Funny-head: swsclose
44
45 crap data
46 </data3>
47 </reply>
48
49 #
50 # Client-side
51 <client>
52 <server>
53 http
54 </server>
55  <name>
56 HTTP, urlglob []-retrieval and -o #[num] usage
57  </name>
58  <command option="no-output">
59 "http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump"
60 </command>
61 </client>
62
63 #
64 # Verify data after the test has been "shot"
65 <verify>
66 <strip>
67 ^User-Agent:.*
68 </strip>
69 <protocol>
70 GET /860001 HTTP/1.1\r
71 User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
72 Host: %HOSTIP:%HTTPPORT\r
73 Accept: */*\r
74 \r
75 GET /860002 HTTP/1.1\r
76 User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
77 Host: %HOSTIP:%HTTPPORT\r
78 Accept: */*\r
79 \r
80 GET /860003 HTTP/1.1\r
81 User-Agent: curl/7.10.7-pre4 (i686-pc-linux-gnu) libcurl/7.10.7-pre4 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
82 Host: %HOSTIP:%HTTPPORT\r
83 Accept: */*\r
84 \r
85 </protocol>
86
87 # we check the second file
88 <file name="log/dumpit860002.dump">
89 HTTP/1.0 200 OK
90 Content-Type: text/html
91 Funny-head: swsclose
92
93 crap data
94 </file>
95 </verify>
96 </testcase>