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
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
2014-02-01 07:47:00 -05:00
|
|
|
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>
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -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>
|
2021-03-12 11:38:26 -05:00
|
|
|
GET /we/want/our/%TESTNUMBER HTTP/1.1
|
2008-04-30 17:20:08 -04:00
|
|
|
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
|
2021-03-12 11:38:26 -05:00
|
|
|
Location: data/%TESTNUMBER0002.txt?coolsite=yes
|
2014-02-01 07:47:00 -05:00
|
|
|
Content-Length: 62
|
|
|
|
Connection: close
|
|
|
|
|
2008-04-30 17:20:08 -04:00
|
|
|
This server reply is for testing a simple Location: following
|
2021-03-12 11:38:26 -05:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/our/data/%TESTNUMBER0002.txt?coolsite=yes http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER 0
|
2008-04-30 17:20:08 -04:00
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|