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