xref: /curl/tests/data/test325 (revision 3fd80c7b)
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: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 7
18Location: http://somewhere/%TESTNUMBER
19
20MooMoo
21</data>
22<datacheck>
23HTTP/1.1 301 OK
24Date: Tue, 09 Nov 2010 14:49:00 GMT
25Server: test-server/fake
26Content-Length: 7
27Location: http://somewhere/%TESTNUMBER
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/%TESTNUMBER --proto-redir -http --location
46</command>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol>
53GET /%TESTNUMBER HTTP/1.1
54Host: %HOSTIP:%HTTPSPORT
55User-Agent: curl/%VERSION
56Accept: */*
57
58</protocol>
59# 1 - Protocol http not supported or disabled in libcurl
60<errorcode>
611
62</errorcode>
63</verify>
64</testcase>
65