2020-07-11 02:05:21 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP Basic
|
|
|
|
RETRY-AFTER
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 301 Moved Permanently
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2020-07-11 02:05:21 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
Retry-After: 2
|
2021-03-13 00:38:26 +08:00
|
|
|
Location: /%TESTNUMBER0002
|
2020-07-11 02:05:21 +08:00
|
|
|
|
|
|
|
</data>
|
|
|
|
<data2>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2020-07-11 02:05:21 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Type: text/html
|
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
</data2>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
HTTP retry-after reset
|
|
|
|
</name>
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2020-07-11 02:05:21 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2020-07-11 02:05:21 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<stdout>
|
2021-06-09 19:40:55 +08:00
|
|
|
Retry-After 2
|
|
|
|
Retry-After 0
|
2020-07-11 02:05:21 +08:00
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|