14
HTTP/1.1 301 This is a weirdo text message
15
Date: Thu, 09 Nov 2010 14:49:00 GMT
16
Server: test-server/fake
17
Location: ../data/10250002.txt
18
Set-Cookie: firstcookie=want; path=/want/
21
This server reply is for testing a Location: following with cookies
25
HTTP/1.1 301 This is a weirdo text message
26
Date: Thu, 09 Nov 2010 14:49:00 GMT
27
Server: test-server/fake
28
Location: ../want/10250003.txt
29
Set-Cookie: nextcookie=data; path=/data/
32
This server reply is for testing a Location: following with cookies
36
HTTP/1.1 200 Followed here fine
37
Date: Thu, 09 Nov 2010 14:49:00 GMT
38
Server: test-server/fake
41
If this is received, the location following worked
45
HTTP/1.1 301 This is a weirdo text message
46
Date: Thu, 09 Nov 2010 14:49:00 GMT
47
Server: test-server/fake
48
Location: ../data/10250002.txt
49
Set-Cookie: firstcookie=want; path=/want/
52
HTTP/1.1 301 This is a weirdo text message
53
Date: Thu, 09 Nov 2010 14:49:00 GMT
54
Server: test-server/fake
55
Location: ../want/10250003.txt
56
Set-Cookie: nextcookie=data; path=/data/
59
HTTP/1.1 200 Followed here fine
60
Date: Thu, 09 Nov 2010 14:49:00 GMT
61
Server: test-server/fake
64
If this is received, the location following worked
75
HTTP Location: following with command-line and server cookies
78
http://%HOSTIP:%HTTPPORT/want/1025 -L -c log/jar1025 -b forcedcookie=yes
82
# Verify data after the test has been "shot"
88
GET /want/1025 HTTP/1.1
89
Host: %HOSTIP:%HTTPPORT
91
Cookie: forcedcookie=yes
93
GET /data/10250002.txt HTTP/1.1
94
Host: %HOSTIP:%HTTPPORT
96
Cookie: forcedcookie=yes
98
GET /want/10250003.txt HTTP/1.1
99
Host: %HOSTIP:%HTTPPORT
101
Cookie: firstcookie=want; forcedcookie=yes