quickjs-tart

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

test1460 (843B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 -J
      7 </keywords>
      8 </info>
      9 
     10 #
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 200 swsclose
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
     17 Content-Length: 4
     18 
     19 hej
     20 </data>
     21 </reply>
     22 
     23 #
     24 # Client-side
     25 <client>
     26 <server>
     27 http
     28 </server>
     29 <name>
     30 HTTP GET with -Ji and Content-Disposition with existing file
     31 </name>
     32 <command option="no-output,no-include">
     33 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -Ji -O --output-dir %LOGDIR
     34 </command>
     35 <file name="%LOGDIR/name%TESTNUMBER">
     36 initial content
     37 </file>
     38 </client>
     39 
     40 #
     41 # Verify data after the test has been "shot"
     42 <verify>
     43 # Warning: Failed to open the file log/name1460: File exists
     44 <errorcode>
     45 23
     46 </errorcode>
     47 <file name="%LOGDIR/name%TESTNUMBER">
     48 initial content
     49 </file>
     50 
     51 </verify>
     52 </testcase>