quickjs-tart

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

test440 (1360B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP proxy
      6 HSTS
      7 trailing-dot
      8 </keywords>
      9 </info>
     10 
     11 <reply>
     12 
     13 # we use this as response to a CONNECT
     14 <connect nocheck="yes">
     15 HTTP/1.1 403 not OK at all
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Content-Length: 6
     19 Connection: close
     20 Funny-head: yesyes
     21 
     22 -foo-
     23 </connect>
     24 </reply>
     25 
     26 <client>
     27 <server>
     28 http
     29 </server>
     30 <features>
     31 HSTS
     32 proxy
     33 https
     34 </features>
     35 
     36 # no trailing dot in the file only in the URL
     37 <file name="%LOGDIR/input%TESTNUMBER">
     38 this.hsts.example "99991001 04:47:41"
     39 </file>
     40 
     41 <name>
     42 HSTS with trailing-dot host name in URL but none in hsts file
     43 </name>
     44 <command>
     45 -x http://%HOSTIP:%HTTPPORT http://this.hsts.example./%TESTNUMBER --hsts %LOGDIR/input%TESTNUMBER -w '%{url_effective}\n'
     46 </command>
     47 
     48 <disable>
     49 test-duphandle
     50 </disable>
     51 </client>
     52 
     53 <verify>
     54 # we let it CONNECT to the server to confirm HSTS but deny from there
     55 <protocol>
     56 CONNECT this.hsts.example.:443 HTTP/1.1
     57 Host: this.hsts.example.:443
     58 User-Agent: curl/%VERSION
     59 Proxy-Connection: Keep-Alive
     60 
     61 </protocol>
     62 <stdout>
     63 HTTP/1.1 403 not OK at all
     64 Date: Tue, 09 Nov 2010 14:49:00 GMT
     65 Server: test-server/fake
     66 Content-Length: 6
     67 Connection: close
     68 Funny-head: yesyes
     69 
     70 https://this.hsts.example./%TESTNUMBER
     71 </stdout>
     72 # Proxy CONNECT aborted
     73 <errorcode>
     74 56
     75 </errorcode>
     76 <limits>
     77 Allocations: 1100
     78 </limits>
     79 </verify>
     80 </testcase>