diff --git a/tests/data/Makefile.inc b/tests/data/Makefile.inc index a8f85af54e..6c5ace0b60 100644 --- a/tests/data/Makefile.inc +++ b/tests/data/Makefile.inc @@ -175,7 +175,7 @@ test1525 test1526 test1527 test1528 test1529 test1530 test1531 test1532 \ test1533 test1534 test1535 test1536 test1537 test1538 \ test1540 test1541 \ test1550 test1551 test1552 test1553 test1554 test1555 test1556 test1557 \ -test1558 test1559 test1560 test1561 test1562 \ +test1558 test1559 test1560 test1561 test1562 test1563 \ \ test1590 test1591 test1592 test1593 \ \ diff --git a/tests/data/test1563 b/tests/data/test1563 new file mode 100644 index 0000000000..a3597b9b53 --- /dev/null +++ b/tests/data/test1563 @@ -0,0 +1,51 @@ + + + +GOPHER +HTTP GET +followlocation + + + +# Server-side + + +HTTP/1.1 302 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Content-Length: 7 +Location: gopher://www.example.co.uk + +nomnom + + + +# Client-side + + +http + + +Make sure redirects to CURLPROTO_GOPHER are forbidden by default + + +http://%HOSTIP:%HTTPPORT/15630001 -L -H "Host: www.example.com" + + + + +^User-Agent:.* + + +1 + + +GET /15630001 HTTP/1.1 +Host: www.example.com +Accept: */* + + + + + +