quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test446 (1489B)


      1 <?xml version="1.0" encoding="ISO-8859-1"?>
      2 <testcase>
      3 <info>
      4 <keywords>
      5 HTTP
      6 HTTP proxy
      7 HSTS
      8 trailing-dot
      9 </keywords>
     10 </info>
     11 
     12 <reply>
     13 
     14 # we use this as response to a CONNECT
     15 <connect nocheck="yes">
     16 HTTP/1.1 200 OK
     17 
     18 </connect>
     19 <data crlf="yes">
     20 HTTP/1.1 200 OK
     21 Content-Length: 6
     22 Strict-Transport-Security: max-age=604800
     23 
     24 -foo-
     25 </data>
     26 <data2 crlf="yes">
     27 HTTP/1.1 200 OK
     28 Content-Length: 6
     29 Strict-Transport-Security: max-age=6048000
     30 
     31 -baa-
     32 </data2>
     33 </reply>
     34 
     35 <client>
     36 <server>
     37 https
     38 http-proxy
     39 </server>
     40 <features>
     41 HSTS
     42 proxy
     43 https
     44 Debug
     45 </features>
     46 <setenv>
     47 CURL_HSTS_HTTP=yes
     48 CURL_TIME=2000000000
     49 </setenv>
     50 
     51 <name>
     52 HSTS with two URLs
     53 </name>
     54 <command>
     55 -x http://%HOSTIP:%PROXYPORT --hsts %LOGDIR/hsts%TESTNUMBER http://this.hsts.example./%TESTNUMBER http://another.example.com/%TESTNUMBER0002
     56 </command>
     57 </client>
     58 
     59 <verify>
     60 # we let it CONNECT to the server to confirm HSTS but deny from there
     61 <proxy crlf="yes">
     62 GET http://this.hsts.example./%TESTNUMBER HTTP/1.1
     63 Host: this.hsts.example.
     64 User-Agent: curl/%VERSION
     65 Accept: */*
     66 Proxy-Connection: Keep-Alive
     67 
     68 GET http://another.example.com/%TESTNUMBER0002 HTTP/1.1
     69 Host: another.example.com
     70 User-Agent: curl/%VERSION
     71 Accept: */*
     72 Proxy-Connection: Keep-Alive
     73 
     74 </proxy>
     75 
     76 <file name="%LOGDIR/hsts%TESTNUMBER" mode="text">
     77 # Your HSTS cache. https://curl.se/docs/hsts.html
     78 # This file was generated by libcurl! Edit at your own risk.
     79 this.hsts.example "20330525 03:33:20"
     80 another.example.com "20330727 03:33:20"
     81 </file>
     82 
     83 </verify>
     84 </testcase>