2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-04-22 17:59:08 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
followlocation
|
|
|
|
HTTP proxy
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-06-28 09:24:19 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 301 This is a weirdo text message
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
2003-07-19 19:57:08 -04:00
|
|
|
Location: data/430002.txt?coolsite=yes
|
2001-06-28 09:24:19 -04:00
|
|
|
Connection: close
|
|
|
|
|
|
|
|
This server reply is for testing a simple Location: following
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<data2>
|
2003-07-19 19:57:08 -04:00
|
|
|
HTTP/1.1 200 Followed here fine swsclose
|
2001-06-28 09:24:19 -04:00
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
2006-11-25 08:32:04 -05:00
|
|
|
Content-Length: 52
|
2001-06-28 09:24:19 -04:00
|
|
|
|
|
|
|
If this is received, the location following worked
|
|
|
|
|
|
|
|
</data2>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 301 This is a weirdo text message
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
2003-07-19 19:57:08 -04:00
|
|
|
Location: data/430002.txt?coolsite=yes
|
2001-06-28 09:24:19 -04:00
|
|
|
Connection: close
|
|
|
|
|
2003-07-19 19:57:08 -04:00
|
|
|
HTTP/1.1 200 Followed here fine swsclose
|
2001-06-28 09:24:19 -04:00
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
2006-11-25 08:32:04 -05:00
|
|
|
Content-Length: 52
|
2001-06-28 09:24:19 -04:00
|
|
|
|
|
|
|
If this is received, the location following worked
|
|
|
|
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 16:25:39 -04:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2001-06-28 09:24:19 -04:00
|
|
|
<name>
|
|
|
|
HTTP Location: following over HTTP proxy
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 04:08:38 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/want/43 -L -x %HOSTIP:%HTTPPORT
|
2001-06-28 09:24:19 -04:00
|
|
|
</command>
|
2019-10-14 16:29:19 -04:00
|
|
|
<features>
|
|
|
|
proxy
|
|
|
|
</features>
|
2005-01-25 16:45:03 -05:00
|
|
|
</client>
|
2001-06-28 09:24:19 -04:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2007-09-14 15:32:31 -04:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/want/43 HTTP/1.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-02-09 07:46:41 -05:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2001-06-28 09:24:19 -04:00
|
|
|
|
2007-09-14 15:32:31 -04:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/want/data/430002.txt?coolsite=yes HTTP/1.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-02-09 07:46:41 -05:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2001-06-28 09:24:19 -04:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|