]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test74
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test74
1 #
2 # Server-side
3 <reply>
4 <data nocheck=1>
5 HTTP/1.1 200 OK
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake
8 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
9 ETag: "21025-dc7-39462498"
10 Accept-Ranges: bytes
11 Content-Length: 6
12 Content-Type: text/html
13 Funny-head: yesyes
14
15 <foo>
16 </data>
17 <data1>
18 HTTP/1.0 200 OK
19 Content-Type: text/html
20 Funny-head: swsclose
21 Connection: close
22
23 crap data
24 </data1>
25 </reply>
26
27 #
28 # Client-side
29 <client>
30 <server>
31 http
32 </server>
33  <name>
34 HTTP, urlglob {}-retrieval and -o #[num] usage
35  </name>
36  <command option=no-output>
37 "http://%HOSTIP:%HOSTPORT/{74,740001}" -o "log/dumpit#1.dump"
38 </command>
39 </client>
40
41 #
42 # Verify data after the test has been "shot"
43 <verify>
44 <strip>
45 ^User-Agent:.*
46 </strip>
47 <protocol>
48 GET /74 HTTP/1.1
49 Host: 127.0.0.1:8999
50 Pragma: no-cache
51 Accept: */*
52
53 GET /740001 HTTP/1.1
54 Host: 127.0.0.1:8999
55 Pragma: no-cache
56 Accept: */*
57
58 </protocol>
59 <file name="log/dumpit740001.dump">
60 HTTP/1.0 200 OK
61 Content-Type: text/html
62 Funny-head: swsclose
63 Connection: close
64
65 crap data
66 </file>
67 </verify>