quickjs-tart

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

test1334 (1026B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 </keywords>
      7 </info>
      8 
      9 #
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Content-Length: 6
     16 Connection: close
     17 Content-Type: text/html
     18 
     19 12345
     20 </data>
     21 </reply>
     22 
     23 #
     24 # Client-side
     25 <client>
     26 <server>
     27 http
     28 </server>
     29 <name>
     30 HTTP GET with -O without Content-Disposition, -D file
     31 </name>
     32 <command option="no-output,no-include">
     33 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O -D %LOGDIR/heads%TESTNUMBER --output-dir %LOGDIR
     34 </command>
     35 </client>
     36 
     37 #
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <protocol>
     41 GET /%TESTNUMBER HTTP/1.1
     42 Host: %HOSTIP:%HTTPPORT
     43 User-Agent: curl/%VERSION
     44 Accept: */*
     45 
     46 </protocol>
     47 
     48 <file1 name="%LOGDIR/%TESTNUMBER">
     49 12345
     50 </file1>
     51 
     52 <file2 name="%LOGDIR/heads%TESTNUMBER">
     53 HTTP/1.1 200 OK
     54 Date: Tue, 09 Nov 2010 14:49:00 GMT
     55 Server: test-server/fake
     56 Content-Length: 6
     57 Connection: close
     58 Content-Type: text/html
     59 
     60 </file2>
     61 
     62 <file3 name="%LOGDIR/stdout%TESTNUMBER">
     63 </file3>
     64 
     65 </verify>
     66 </testcase>