HTTPS
HTTP GET
--proto-redir
#
# Server-side
HTTP/1.1 301 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 7
Location: http://somewhere/325
MooMoo
HTTP/1.1 301 OK
Date: Thu, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Content-Length: 7
Location: http://somewhere/325
#
# Client-side
SSL
https
HTTPS with attempted redirect to denied HTTP
-k https://%HOSTIP:%HTTPSPORT/325 --proto-redir -http --location
#
# Verify data after the test has been "shot"
^User-Agent:.*
GET /325 HTTP/1.1
Host: %HOSTIP:%HTTPSPORT
Accept: */*
# 1 - Protocol http not supported or disabled in libcurl
1