test1563 (678B)
1 <testcase> 2 <info> 3 <keywords> 4 GOPHER 5 HTTP GET 6 followlocation 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data1> 13 HTTP/1.1 302 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Content-Length: 7 17 Location: gopher://www.example.co.uk 18 19 nomnom 20 </data1> 21 </reply> 22 23 # Client-side 24 <client> 25 <server> 26 http 27 </server> 28 <name> 29 Make sure redirects to CURLPROTO_GOPHER are forbidden by default 30 </name> 31 <command> 32 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -L -H "Host: www.example.com" 33 </command> 34 </client> 35 <verify> 36 <errorcode> 37 1 38 </errorcode> 39 <protocol> 40 GET /%TESTNUMBER0001 HTTP/1.1 41 Host: www.example.com 42 User-Agent: curl/%VERSION 43 Accept: */* 44 45 </protocol> 46 47 </verify> 48 49 </testcase>