c3991ecb4b418978f386dc057b0a5cfda29e24eb
[platform/upstream/curl.git] / tests / data / test1328
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 -f
7 </keywords>
8 </info>
9
10 <reply>
11 <data>
12 HTTP/1.1 404 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Content-Length: 6
15 Funny-head: yesyes
16
17 -noo-
18 </data>
19 <data1>
20 HTTP/1.1 200 OK
21 Date: Thu, 09 Nov 2010 14:49:00 GMT
22 Content-Length: 6
23 Connection: close
24 Funny-head: yesyes
25
26 -yes-
27 </data1>
28 <datacheck>
29 HTTP/1.1 200 OK
30 Date: Thu, 09 Nov 2010 14:49:00 GMT
31 Content-Length: 6
32 Connection: close
33 Funny-head: yesyes
34
35 -yes-
36 </datacheck>
37 </reply>
38
39 #
40 # Client-side
41 <client>
42 <server>
43 http
44 </server>
45  <name>
46 HTTP GET a globbed range with -f
47  </name>
48  <command>
49 -f 'http://%HOSTIP:%HTTPPORT/[13280000-13280001]' -o log/#1
50 </command>
51 </client>
52
53 #
54 # Verify data after the test has been "shot"
55 <verify>
56 <strip>
57 ^User-Agent:.*
58 </strip>
59 <protocol>
60 GET /13280000 HTTP/1.1\r
61 Host: %HOSTIP:%HTTPPORT\r
62 Accept: */*\r
63 \r
64 GET /13280001 HTTP/1.1\r
65 Host: %HOSTIP:%HTTPPORT\r
66 Accept: */*\r
67 \r
68 </protocol>
69 </verify>
70 </testcase>