2017-07-04 05:52:10 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
multi
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 302 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2017-07-04 05:52:10 +08:00
|
|
|
Content-Length: 6
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: /%TESTNUMBER0002
|
2017-07-04 05:52:10 +08:00
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2017-07-04 05:52:10 +08:00
|
|
|
Content-Length: 11
|
|
|
|
|
|
|
|
redirected
|
|
|
|
</data2>
|
|
|
|
<datacheck>
|
|
|
|
redirected
|
|
|
|
redirected
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2017-07-04 05:52:10 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
re-run redirected transfer without setting URL again
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2017-07-04 05:52:10 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-07-04 05:52:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2017-07-04 05:52:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2017-07-04 05:52:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER0002 HTTP/1.1
|
2017-07-04 05:52:10 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|