1<testcase>
2<info>
3<keywords>
4HTTPS
5HTTP GET
6--proto-redir
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 301 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 7
18Location: http://%HOSTIP:%HTTPPORT/325
19
20MooMoo
21</data>
22<datacheck>
23HTTP/1.1 301 OK
24Date: Thu, 09 Nov 2010 14:49:00 GMT
25Server: test-server/fake
26Content-Length: 7
27Location: http://%HOSTIP:%HTTPPORT/325
28
29</datacheck>
30</reply>
31
32#
33# Client-side
34<client>
35<features>
36SSL
37</features>
38<server>
39https
40</server>
41 <name>
42HTTPS with attempted redirect to denied HTTP
43 </name>
44 <command>
45-k https://%HOSTIP:%HTTPSPORT/325 --proto-redir -http --location
46</command>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<strip>
53^User-Agent:.*
54</strip>
55<protocol>
56GET /325 HTTP/1.1
57Host: %HOSTIP:%HTTPSPORT
58Accept: */*
59
60</protocol>
61# 1 - Protocol http not supported or disabled in libcurl
62<errorcode>
631
64</errorcode>
65</verify>
66</testcase>
67