2008-04-30 17:20:08 -04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
redirect_url
|
|
|
|
followlocation
|
2008-07-30 22:51:44 -04:00
|
|
|
--write-out
|
2008-04-30 17:20:08 -04:00
|
|
|
</keywords>
|
|
|
|
</info>
|
2008-07-30 22:51:44 -04:00
|
|
|
|
2008-04-30 17:20:08 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-07 16:57:26 -05:00
|
|
|
<data nocheck="yes">
|
2014-02-01 07:47:00 -05:00
|
|
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
|
|
|
Location: data/10290002.txt?coolsite=yes
|
|
|
|
Content-Length: 62
|
|
|
|
Connection: close
|
|
|
|
|
2008-04-30 17:20:08 -04:00
|
|
|
This server reply is for testing a simple Location: following
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP Location: and 'redirect_url' check
|
|
|
|
</name>
|
2018-10-04 17:53:32 -04:00
|
|
|
<command>
|
2020-12-20 17:00:13 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url} %{url} %{exitcode} %{errormsg}\n'
|
2008-04-30 17:20:08 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
GET /we/want/our/1029 HTTP/1.1
|
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2008-04-30 17:20:08 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2014-02-01 07:47:00 -05:00
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
|
|
|
Location: data/10290002.txt?coolsite=yes
|
|
|
|
Content-Length: 62
|
|
|
|
Connection: close
|
|
|
|
|
2008-04-30 17:20:08 -04:00
|
|
|
This server reply is for testing a simple Location: following
|
2021-01-27 10:39:24 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/1029 0
|
2008-04-30 17:20:08 -04:00
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|