quickjs-tart

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

test1487 (818B)


      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 301 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Length: 6
     17 Connection: close
     18 Content-Type: text/html
     19 Content-Disposition: filename=name%TESTNUMBER; charset=funny; option=strange
     20 
     21 12345
     22 </data>
     23 </reply>
     24 
     25 #
     26 # Client-side
     27 <client>
     28 <server>
     29 http
     30 </server>
     31 <name>
     32 HTTP GET with -J and Content-Disposition on 301
     33 </name>
     34 <command option="no-output,no-include">
     35 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O --output-dir %LOGDIR
     36 </command>
     37 </client>
     38 
     39 #
     40 # Verify data after the test has been "shot"
     41 <verify>
     42 <protocol>
     43 GET /%TESTNUMBER HTTP/1.1
     44 Host: %HOSTIP:%HTTPPORT
     45 User-Agent: curl/%VERSION
     46 Accept: */*
     47 
     48 </protocol>
     49 <file name="%LOGDIR/name%TESTNUMBER">
     50 12345
     51 </file>
     52 
     53 </verify>
     54 </testcase>