2018-11-02 06:45:57 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
redirect_url
|
|
|
|
followlocation
|
|
|
|
--write-out
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
|
|
|
Location: ht3p://localhost/
|
|
|
|
Content-Length: 62
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
This server reply is for testing a simple Location: following
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP Location: and 'redirect_url' with non-supported scheme
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w '%{redirect_url}\n'
|
2018-11-02 06:45:57 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /we/want/our/%TESTNUMBER HTTP/1.1
|
2018-11-02 06:45:57 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2018-11-02 06:45:57 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<stdout>
|
|
|
|
HTTP/1.1 301 This is a weirdo text message swsclose
|
|
|
|
Location: ht3p://localhost/
|
|
|
|
Content-Length: 62
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
This server reply is for testing a simple Location: following
|
|
|
|
ht3p://localhost/
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|