• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7followlocation
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13HTTP/1.1 302 This is a weirdo text message
14Connection: close
15Location: http:///foo.example.com/want/11410001
16
17This server reply is for testing
18</data>
19<data1>
20HTTP/1.1 200 hello
21Connection: close
22Content-Length: 4
23
24hej
25</data1>
26<datacheck>
27HTTP/1.1 302 This is a weirdo text message
28Connection: close
29Location: http:///foo.example.com/want/11410001
30
31HTTP/1.1 200 hello
32Connection: close
33Content-Length: 4
34
35hej
36</datacheck>
37</reply>
38
39# Client-side
40<client>
41<server>
42http
43</server>
44 <name>
45HTTP redirect to http:/// (three slashes!)
46 </name>
47 <command>
48%HOSTIP:%HTTPPORT/want/1141 -L -x http://%HOSTIP:%HTTPPORT
49</command>
50<features>
51proxy
52</features>
53</client>
54
55# Verify data after the test has been "shot"
56<verify>
57<protocol>
58GET http://%HOSTIP:%HTTPPORT/want/1141 HTTP/1.1
59Host: %HOSTIP:%HTTPPORT
60User-Agent: curl/%VERSION
61Accept: */*
62Proxy-Connection: Keep-Alive
63
64GET http://foo.example.com/want/11410001 HTTP/1.1
65Host: foo.example.com
66User-Agent: curl/%VERSION
67Accept: */*
68Proxy-Connection: Keep-Alive
69
70</protocol>
71</verify>
72</testcase>
73