• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: Thu, 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/15630001 -L -H "Host: www.example.com"
33</command>
34</client>
35<verify>
36<strip>
37^User-Agent:.*
38</strip>
39<errorcode>
401
41</errorcode>
42<protocol>
43GET /15630001 HTTP/1.1
44Host: www.example.com
45Accept: */*
46
47</protocol>
48
49</verify>
50
51</testcase>
52