test783 (1439B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP proxy 6 HSTS 7 </keywords> 8 </info> 9 10 <reply> 11 12 # we use this as response to a CONNECT 13 <connect nocheck="yes"> 14 HTTP/1.1 200 OK 15 Server: fake 16 17 </connect> 18 19 <data nocheck="yes"> 20 HTTP/1.1 200 OK 21 Date: Tue, 09 Nov 2010 14:49:00 GMT 22 Server: test-server/fake swsclose 23 Content-Type: text/html 24 Funny-head: yesyes 25 Strict-Transport-Security: max-age=1000; 26 27 </data> 28 </reply> 29 30 <client> 31 <server> 32 http 33 http-proxy 34 https 35 </server> 36 <features> 37 HSTS 38 proxy 39 https 40 Debug 41 large-time 42 </features> 43 44 <setenv> 45 CURL_HSTS_HTTP=yes 46 CURL_TIME=1728465947 47 </setenv> 48 49 <file name="%LOGDIR/input%TESTNUMBER"> 50 .hsts.example "20991001 04:47:41" 51 .this.hsts.example "99991001 04:47:41" 52 </file> 53 54 <name> 55 HSTS update expiry, removing includeSubDomains in update 56 </name> 57 <command> 58 -x http://%HOSTIP:%PROXYPORT http://this.hsts.example:%HTTPSPORT/%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER --insecure 59 </command> 60 <disable> 61 test-duphandle 62 </disable> 63 </client> 64 65 <verify> 66 67 <stdout> 68 HTTP/1.1 200 OK 69 Server: fake 70 71 HTTP/1.1 200 OK 72 Date: Tue, 09 Nov 2010 14:49:00 GMT 73 Server: test-server/fake swsclose 74 Content-Type: text/html 75 Funny-head: yesyes 76 Strict-Transport-Security: max-age=1000; 77 78 </stdout> 79 80 <file name="%LOGDIR/input%TESTNUMBER" mode="text"> 81 # Your HSTS cache. https://curl.se/docs/hsts.html 82 # This file was generated by libcurl! Edit at your own risk. 83 .hsts.example "20991001 04:47:41" 84 this.hsts.example "20241009 09:42:27" 85 </file> 86 </verify> 87 </testcase>