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