xref: /curl/tests/data/test28 (revision fc3e1cbc)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8# Server-side
9<reply>
10<data>
11HTTP/1.1 301 This is a weirdo text message swsclose
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Location:  /online/1,1795,Welcome,00.html/%TESTNUMBER0002.txt?logout=TRUE
15Connection: close
16
17This server reply is for testing a simple Location: following
18
19</data>
20<data2>
21HTTP/1.1 200 Followed here fine swsclose
22Date: Tue, 09 Nov 2010 14:49:00 GMT
23Server: test-server/fake
24Content-Length: 52
25
26If this is received, the location following worked
27
28</data2>
29<datacheck>
30HTTP/1.1 301 This is a weirdo text message swsclose
31Date: Tue, 09 Nov 2010 14:49:00 GMT
32Server: test-server/fake
33Location:  /online/1,1795,Welcome,00.html/%TESTNUMBER0002.txt?logout=TRUE
34Connection: close
35
36HTTP/1.1 200 Followed here fine swsclose
37Date: Tue, 09 Nov 2010 14:49:00 GMT
38Server: test-server/fake
39Content-Length: 52
40
41If this is received, the location following worked
42
43</datacheck>
44</reply>
45
46# Client-side
47<client>
48<server>
49http
50</server>
51<name>
52HTTP Location: following with extra spaces in header
53</name>
54<command>
55http://%HOSTIP:%HTTPPORT/want/%TESTNUMBER -L
56</command>
57</client>
58
59# Verify data after the test has been "shot"
60<verify>
61<protocol>
62GET /want/%TESTNUMBER HTTP/1.1
63Host: %HOSTIP:%HTTPPORT
64User-Agent: curl/%VERSION
65Accept: */*
66
67GET /online/1,1795,Welcome,00.html/%TESTNUMBER0002.txt?logout=TRUE HTTP/1.1
68Host: %HOSTIP:%HTTPPORT
69User-Agent: curl/%VERSION
70Accept: */*
71
72</protocol>
73</verify>
74</testcase>
75