]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test11
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test11
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 301 This is a weirdo text message swsclose
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7 Location: data/110002.txt?coolsite=yes
8 Connection: close
9
10 This server reply is for testing a simple Location: following
11
12 </data>
13 <data2>
14 HTTP/1.1 200 Followed here fine swsclose
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
17
18 If this is received, the location following worked
19
20 </data2>
21 <datacheck>
22 HTTP/1.1 301 This is a weirdo text message swsclose
23 Date: Thu, 09 Nov 2010 14:49:00 GMT
24 Server: test-server/fake
25 Location: data/110002.txt?coolsite=yes
26 Connection: close
27
28 HTTP/1.1 200 Followed here fine swsclose
29 Date: Thu, 09 Nov 2010 14:49:00 GMT
30 Server: test-server/fake
31
32 If this is received, the location following worked
33
34 </datacheck>
35 </reply>
36
37 # Client-side
38 <client>
39 <server>
40 http
41 </server>
42  <name>
43 simple HTTP Location: following
44  </name>
45  <command>
46 http://%HOSTIP:%HOSTPORT/want/11 -L
47 </command>
48 </test>
49
50 # Verify data after the test has been "shot"
51 <verify>
52 <strip>
53 ^User-Agent:.*
54 </strip>
55 <protocol>
56 GET /want/11 HTTP/1.1
57 Host: 127.0.0.1:8999
58 Pragma: no-cache
59 Accept: */*
60
61 GET /want/data/110002.txt?coolsite=yes HTTP/1.1
62 Host: 127.0.0.1:8999
63 Pragma: no-cache
64 Accept: */*
65
66 </protocol>
67 </verify>