Debian Codegraph @

curl/tests/data/test187

raw
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 301 This is a weirdo text message
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7 Location: /root/1870002.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
23 Date: Thu, 09 Nov 2010 14:49:00 GMT
24 Server: test-server/fake
25 Location: /root/1870002.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 HTTP redirect with bad host name separation and slash in parameters
44 </name>
45 <command>
46 http://%HOSTIP:%HTTPPORT?oh=what-weird=test/187 -L
47 </command>
48 </client>
49
50 # Verify data after the test has been "shot"
51 <verify>
52 <strip>
53 ^User-Agent:.*
54 </strip>
55 <protocol>
56 GET /?oh=what-weird=test/187 HTTP/1.1
57 Host: 127.0.0.1:%HTTPPORT
58 Accept: */*
59
60 GET /root/1870002.txt?coolsite=yes HTTP/1.1
61 Host: 127.0.0.1:%HTTPPORT
62 Accept: */*
63
64 </protocol>
65 </verify>