xref: /curl/tests/data/test74 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6globbing
7{} list
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
21Content-Type: text/html
22Funny-head: yesyes
23
24-foo-
25</data>
26<data1>
27HTTP/1.0 200 OK
28Content-Type: text/html
29Funny-head: swsclose
30Connection: close
31
32crap data
33</data1>
34</reply>
35
36#
37# Client-side
38<client>
39<server>
40http
41</server>
42<name>
43HTTP, urlglob {}-retrieval and -o #[num] usage
44</name>
45 <command option="no-output">
46"http://%HOSTIP:%HTTPPORT/{%TESTNUMBER,%TESTNUMBER0001}" -o "%LOGDIR/dumpit#1.dump"
47</command>
48</client>
49
50#
51# Verify data after the test has been "shot"
52<verify>
53<protocol>
54GET /%TESTNUMBER HTTP/1.1
55Host: %HOSTIP:%HTTPPORT
56User-Agent: curl/%VERSION
57Accept: */*
58
59GET /%TESTNUMBER0001 HTTP/1.1
60Host: %HOSTIP:%HTTPPORT
61User-Agent: curl/%VERSION
62Accept: */*
63
64</protocol>
65<file name="%LOGDIR/dumpit%TESTNUMBER0001.dump">
66HTTP/1.0 200 OK
67Content-Type: text/html
68Funny-head: swsclose
69Connection: close
70
71crap data
72</file>
73</verify>
74</testcase>
75