Debian Codegraph @

curl/tests/data/test11

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