mirror of
https://github.com/curl/curl.git
synced 2026-04-13 12:41:42 +08:00
Using a mixture of techniques to avoid symbols collisions: - reduce scope. - add `t*_` / `T*_` prefix. - move shared functions to `testutil.c`. (`suburl()`, `rlim2str()`) - clone re-used lib*.c sources. (lib587, lib645) - include shared symbols just once in re-used `lib*.c` sources. (using `LIB*_C` guards.) - drop re-used `lib*.c` sources where they were identical or unused. - make macros global. - #undef macros before use. What remain is the entry functions `test`, and `unit_setup`, `unit_stop` in unit tests. Also: - fix formatting and other minor things along the way. - add `const` where possible. - sync some symbol names between tests. - drop `mk-bundle-hints.sh` that's no longer necessary. Closes #17468
51 lines
740 B
Plaintext
51 lines
740 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
HTTP replaced headers
|
|
CURLOPT_TIMECONDITION
|
|
If-Modified-Since
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data nocheck="yes">
|
|
HTTP/1.1 429 Too Many Requests
|
|
Date: Wed, 31 Dec 2036 02:26:59 GMT
|
|
Server: test-server/swsclose
|
|
Retry-After: Wed, 31 Dec 2036 02:26:59 GMT
|
|
|
|
</data>
|
|
</reply>
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
http
|
|
</server>
|
|
<name>
|
|
HTTP Retry-After header parsing using a date
|
|
</name>
|
|
<tool>
|
|
lib1594
|
|
</tool>
|
|
<command>
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
<verify>
|
|
<protocol>
|
|
GET /%TESTNUMBER HTTP/1.1
|
|
Host: %HOSTIP:%HTTPPORT
|
|
Accept: */*
|
|
|
|
</protocol>
|
|
# Retry-After time is limited to 6 hours (21600 seconds)
|
|
<stdout>
|
|
Retry-After 21600
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|