xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HSTS |
| 6 | CURLOPT_HSTSREADFUNCTION |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | </reply> |
| 13 | |
| 14 | # Client-side |
| 15 | <client> |
| 16 | <features> |
| 17 | HSTS |
| 18 | http |
| 19 | </features> |
| 20 | <server> |
| 21 | none |
| 22 | </server> |
| 23 | |
| 24 | # require debug so that alt-svc can work over plain old HTTP |
| 25 | <name> |
| 26 | HSTS read/write callbacks |
| 27 | </name> |
| 28 | <tool> |
| 29 | lib%TESTNUMBER |
| 30 | </tool> |
| 31 | |
| 32 | <command> |
| 33 | http://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER |
| 34 | </command> |
| 35 | </client> |
| 36 | |
| 37 | # Verify data after the test has been "shot" |
| 38 | <verify> |
| 39 | # 7 CURLE_COULDNT_CONNECT (expected since there's nothing listening there) |
| 40 | # 42 CURLE_ABORTED_BY_CALLBACK |
| 41 | <errorcode> |
| 42 | 42 |
| 43 | </errorcode> |
| 44 | <stdout> |
| 45 | [0/4] 1.example.com 20370320 01:02:03 |
| 46 | [1/4] 2.example.com 20370320 03:02:01 |
| 47 | [2/4] 3.example.com 20370319 01:02:03 |
| 48 | [3/4] 4.example.com unlimited |
| 49 | First request returned 7 |
| 50 | Second request returned 42 |
| 51 | </stdout> |
| 52 | </verify> |
| 53 | </testcase> |