xref: /curl/tests/data/test86 (revision 3fd80c7b)
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: Tue, 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/[%TESTNUMBER0001-%TESTNUMBER0003]" -o "%LOGDIR/dumpit#1.dump"
61</command>
62</client>
63
64#
65# Verify data after the test has been "shot"
66<verify>
67<protocol>
68GET /%TESTNUMBER0001 HTTP/1.1
69Host: %HOSTIP:%HTTPPORT
70User-Agent: curl/%VERSION
71Accept: */*
72
73GET /%TESTNUMBER0002 HTTP/1.1
74Host: %HOSTIP:%HTTPPORT
75User-Agent: curl/%VERSION
76Accept: */*
77
78GET /%TESTNUMBER0003 HTTP/1.1
79Host: %HOSTIP:%HTTPPORT
80User-Agent: curl/%VERSION
81Accept: */*
82
83</protocol>
84
85# we check the second file
86<file name="%LOGDIR/dumpit%TESTNUMBER0002.dump">
87HTTP/1.0 200 OK
88Content-Type: text/html
89Funny-head: swsclose
90
91crap data
92</file>
93</verify>
94</testcase>
95