quickjs-tart

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

test410 (832B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Date: Thu, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Length: 7
     17 
     18 MooMoo
     19 </data>
     20 </reply>
     21 
     22 #
     23 # Client-side
     24 <client>
     25 <features>
     26 SSL
     27 </features>
     28 <server>
     29 https
     30 </server>
     31 <name>
     32 HTTPS GET with very long request header
     33 </name>
     34 # 14 characters repeated 3500 times makes 49000 bytes
     35 <file name="%LOGDIR/file%TESTNUMBER">
     36 Long: %repeat[3500 x header content]%
     37 </file>
     38 <command>
     39 --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER -H @%LOGDIR/file%TESTNUMBER
     40 </command>
     41 </client>
     42 
     43 #
     44 # Verify data after the test has been "shot"
     45 <verify>
     46 <protocol>
     47 GET /%TESTNUMBER HTTP/1.1
     48 Host: %HOSTIP:%HTTPSPORT
     49 User-Agent: curl/%VERSION
     50 Accept: */*
     51 Long: %repeat[3500 x header content]%
     52 
     53 </protocol>
     54 </verify>
     55 </testcase>