1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <testcase>
- <info>
- <keywords>
- HTTP
- HTTP GET
- </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>
|