Debian Codegraph @

curl/tests/data/test86

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 [] range
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data nocheck=1>
12 HTTP/1.1 200 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
16 ETag: "21025-dc7-39462498"
17 Accept-Ranges: bytes
18 Content-Length: 6
19 Connection: close
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
30 crap data
31 </data1>
32 <data2>
33 HTTP/1.0 200 OK
34 Content-Type: text/html
35 Funny-head: swsclose
36
37 crap data
38 </data2>
39 <data3>
40 HTTP/1.0 200 OK
41 Content-Type: text/html
42 Funny-head: swsclose
43
44 crap data
45 </data3>
46 </reply>
47
48 #
49 # Client-side
50 <client>
51 <server>
52 http
53 </server>
54 <name>
55 HTTP, urlglob []-retrieval and -o #[num] usage
56 </name>
57 <command option=no-output>
58 "http://%HOSTIP:%HTTPPORT/[860001-860003]" -o "log/dumpit#1.dump"
59 </command>
60 </client>
61
62 #
63 # Verify data after the test has been "shot"
64 <verify>
65 <strip>
66 ^User-Agent:.*
67 </strip>
68 <protocol>
69 GET /860001 HTTP/1.1
70 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
71 Host: 127.0.0.1:%HTTPPORT
72 Accept: */*
73
74 GET /860002 HTTP/1.1
75 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
76 Host: 127.0.0.1:%HTTPPORT
77 Accept: */*
78
79 GET /860003 HTTP/1.1
80 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
81 Host: 127.0.0.1:%HTTPPORT
82 Accept: */*
83
84 </protocol>
85
86 # we check the second file
87 <file name="log/dumpit860002.dump">
88 HTTP/1.0 200 OK
89 Content-Type: text/html
90 Funny-head: swsclose
91
92 crap data
93 </file>
94 </verify>