browser/external/curl-8.3.0/tests/data/test1633

100 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2023-09-27 13:43:06 -04:00
<testcase>
<info>
<keywords>
HTTP
HTTP GET
RETRY-AFTER
</keywords>
</info>
#
# Server-side
<reply>
<data>
HTTP/1.1 301 OK
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Location: /%TESTNUMBER0002
</data>
<data2>
HTTP/1.1 429 too many requests
Retry-After: 1
Content-Length: 0
Connection: close
</data2>
<datacheck>
HTTP/1.1 301 OK
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Location: /%TESTNUMBER0002
HTTP/1.1 429 too many requests
Retry-After: 1
Content-Length: 0
Connection: close
HTTP/1.1 301 OK
Accept-Ranges: bytes
Content-Length: 0
Connection: close
Location: /%TESTNUMBER0002
HTTP/1.1 429 too many requests
Retry-After: 1
Content-Length: 0
Connection: close
</datacheck>
</reply>
#
# Client-side
<client>
<server>
http
</server>
<name>
--retry with a 429 response and Retry-After:
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -d moo --retry 1 -L
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<protocol>
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 3
Content-Type: application/x-www-form-urlencoded
mooGET /%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
POST /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
Content-Length: 3
Content-Type: application/x-www-form-urlencoded
mooGET /%TESTNUMBER0002 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
</protocol>
</verify>
</testcase>