From 2e57c7e0fcfb9214b2a9dfa8b3da258ded013b8a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 23 Apr 2014 22:34:46 +0200 Subject: test325: verify --proto-redir https=>http --- tests/data/test325 | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 tests/data/test325 (limited to 'tests/data/test325') diff --git a/tests/data/test325 b/tests/data/test325 new file mode 100644 index 000000000..6d5898d45 --- /dev/null +++ b/tests/data/test325 @@ -0,0 +1,66 @@ + + + +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://%HOSTIP:%HTTPPORT/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://%HOSTIP:%HTTPPORT/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 + + + -- cgit v1.2.3