2014-04-24 04:34:46 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTPS
|
|
|
|
HTTP GET
|
|
|
|
--proto-redir
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 301 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-04-24 04:34:46 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 7
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://somewhere/%TESTNUMBER
|
2014-04-24 04:34:46 +08:00
|
|
|
|
|
|
|
MooMoo
|
|
|
|
</data>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 301 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2014-04-24 04:34:46 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 7
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: http://somewhere/%TESTNUMBER
|
2014-04-24 04:34:46 +08:00
|
|
|
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
|
|
|
SSL
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
https
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTPS with attempted redirect to denied HTTP
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-k https://%HOSTIP:%HTTPSPORT/%TESTNUMBER --proto-redir -http --location
|
2014-04-24 04:34:46 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2014-04-24 04:34:46 +08:00
|
|
|
Host: %HOSTIP:%HTTPSPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2014-04-24 04:34:46 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
# 1 - Protocol http not supported or disabled in libcurl
|
|
|
|
<errorcode>
|
|
|
|
1
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|