1*6236dae4SAndroid Build Coastguard Worker<testcase> 2*6236dae4SAndroid Build Coastguard Worker<info> 3*6236dae4SAndroid Build Coastguard Worker<keywords> 4*6236dae4SAndroid Build Coastguard WorkerHTTP 5*6236dae4SAndroid Build Coastguard WorkerHSTS 6*6236dae4SAndroid Build Coastguard WorkerCURLOPT_HSTSREADFUNCTION 7*6236dae4SAndroid Build Coastguard Worker</keywords> 8*6236dae4SAndroid Build Coastguard Worker</info> 9*6236dae4SAndroid Build Coastguard Worker 10*6236dae4SAndroid Build Coastguard Worker# Server-side 11*6236dae4SAndroid Build Coastguard Worker<reply> 12*6236dae4SAndroid Build Coastguard Worker</reply> 13*6236dae4SAndroid Build Coastguard Worker 14*6236dae4SAndroid Build Coastguard Worker# Client-side 15*6236dae4SAndroid Build Coastguard Worker<client> 16*6236dae4SAndroid Build Coastguard Worker<features> 17*6236dae4SAndroid Build Coastguard WorkerHSTS 18*6236dae4SAndroid Build Coastguard Workerhttp 19*6236dae4SAndroid Build Coastguard Worker</features> 20*6236dae4SAndroid Build Coastguard Worker<server> 21*6236dae4SAndroid Build Coastguard Workernone 22*6236dae4SAndroid Build Coastguard Worker</server> 23*6236dae4SAndroid Build Coastguard Worker 24*6236dae4SAndroid Build Coastguard Worker<name> 25*6236dae4SAndroid Build Coastguard WorkerHSTS read/write callbacks 26*6236dae4SAndroid Build Coastguard Worker</name> 27*6236dae4SAndroid Build Coastguard Worker<tool> 28*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER 29*6236dae4SAndroid Build Coastguard Worker</tool> 30*6236dae4SAndroid Build Coastguard Worker 31*6236dae4SAndroid Build Coastguard Worker<command> 32*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%NOLISTENPORT/not-there/%TESTNUMBER 33*6236dae4SAndroid Build Coastguard Worker</command> 34*6236dae4SAndroid Build Coastguard Worker</client> 35*6236dae4SAndroid Build Coastguard Worker 36*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 37*6236dae4SAndroid Build Coastguard Worker<verify> 38*6236dae4SAndroid Build Coastguard Worker# 7 CURLE_COULDNT_CONNECT (expected since there's nothing listening there) 39*6236dae4SAndroid Build Coastguard Worker# 42 CURLE_ABORTED_BY_CALLBACK 40*6236dae4SAndroid Build Coastguard Worker<errorcode> 41*6236dae4SAndroid Build Coastguard Worker42 42*6236dae4SAndroid Build Coastguard Worker</errorcode> 43*6236dae4SAndroid Build Coastguard Worker<stdout> 44*6236dae4SAndroid Build Coastguard Worker%if large-time 45*6236dae4SAndroid Build Coastguard Worker[0/4] 1.example.com 25250320 01:02:03 46*6236dae4SAndroid Build Coastguard Worker[1/4] 2.example.com 25250320 03:02:01 47*6236dae4SAndroid Build Coastguard Worker[2/4] 3.example.com 25250319 01:02:03 48*6236dae4SAndroid Build Coastguard Worker%else 49*6236dae4SAndroid Build Coastguard Worker[0/4] 1.example.com 20370320 01:02:03 50*6236dae4SAndroid Build Coastguard Worker[1/4] 2.example.com 20370320 03:02:01 51*6236dae4SAndroid Build Coastguard Worker[2/4] 3.example.com 20370319 01:02:03 52*6236dae4SAndroid Build Coastguard Worker%endif 53*6236dae4SAndroid Build Coastguard Worker[3/4] 4.example.com unlimited 54*6236dae4SAndroid Build Coastguard WorkerFirst request returned 7 55*6236dae4SAndroid Build Coastguard WorkerSecond request returned 42 56*6236dae4SAndroid Build Coastguard Worker</stdout> 57*6236dae4SAndroid Build Coastguard Worker</verify> 58*6236dae4SAndroid Build Coastguard Worker</testcase> 59