xref: /curl/tests/data/test662 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7followlocation
8</keywords>
9</info>
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 302 OK
15Location: http://example.net/tes t case=/%TESTNUMBER0002
16Date: Tue, 09 Nov 2010 14:49:00 GMT
17Content-Length: 0
18
19</data>
20<data2>
21HTTP/1.1 200 OK
22Location: this should be ignored
23Date: Tue, 09 Nov 2010 14:49:00 GMT
24Content-Length: 5
25
26body
27</data2>
28<datacheck>
29HTTP/1.1 302 OK
30Location: http://example.net/tes t case=/%TESTNUMBER0002
31Date: Tue, 09 Nov 2010 14:49:00 GMT
32Content-Length: 0
33
34HTTP/1.1 200 OK
35Location: this should be ignored
36Date: Tue, 09 Nov 2010 14:49:00 GMT
37Content-Length: 5
38
39body
40</datacheck>
41</reply>
42
43#
44# Client-side
45<client>
46<server>
47http
48</server>
49<name>
50HTTP redirect with whitespace in absolute Location: URL
51</name>
52<command>
53http://example.com/please/gimme/%TESTNUMBER -L -x http://%HOSTIP:%HTTPPORT
54</command>
55<features>
56proxy
57</features>
58</client>
59
60#
61# Verify data after the test has been "shot"
62<verify>
63<protocol>
64GET http://example.com/please/gimme/%TESTNUMBER HTTP/1.1
65Host: example.com
66User-Agent: curl/%VERSION
67Accept: */*
68Proxy-Connection: Keep-Alive
69
70GET http://example.net/tes%20t%20case=/%TESTNUMBER0002 HTTP/1.1
71Host: example.net
72User-Agent: curl/%VERSION
73Accept: */*
74Proxy-Connection: Keep-Alive
75
76</protocol>
77</verify>
78</testcase>
79