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