quickjs-tart

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

test477 (999B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 --max-filesize
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data nocheck="yes">
     14 HTTP/1.1 301 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Location: %TESTNUMBER0002
     18 Accept-Ranges: bytes
     19 Content-Length: 26
     20 Funny-head: yesyes
     21 
     22 aaaaaaaaaaaaaaaaaaaa-foo-
     23 </data>
     24 
     25 <data2 nocheck="yes">
     26 HTTP/1.1 200 OK
     27 Date: Tue, 09 Nov 2010 14:49:00 GMT
     28 Server: test-server/fake
     29 Accept-Ranges: bytes
     30 Content-Length: 4
     31 Funny-head: yesyes
     32 
     33 hej
     34 </data2>
     35 </reply>
     36 
     37 #
     38 # Client-side
     39 <client>
     40 <server>
     41 http
     42 </server>
     43 <name>
     44 HTTP GET with maximum filesize with a redirect sending data
     45 </name>
     46 <command>
     47 http://%HOSTIP:%HTTPPORT/%TESTNUMBER --max-filesize 5 -L
     48 </command>
     49 </client>
     50 
     51 #
     52 # Verify data after the test has been "shot"
     53 <verify>
     54 <protocol>
     55 GET /%TESTNUMBER HTTP/1.1
     56 Host: %HOSTIP:%HTTPPORT
     57 User-Agent: curl/%VERSION
     58 Accept: */*
     59 
     60 GET /%TESTNUMBER0002 HTTP/1.1
     61 Host: %HOSTIP:%HTTPPORT
     62 User-Agent: curl/%VERSION
     63 Accept: */*
     64 
     65 </protocol>
     66 </verify>
     67 </testcase>