quickjs-tart

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

test463 (800B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 -d
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Content-Length: 4
     16 
     17 ok!
     18 </data>
     19 </reply>
     20 
     21 #
     22 # Client-side
     23 <client>
     24 <server>
     25 http
     26 </server>
     27 <name>
     28 HTTP with -d @file with file containing CR, LF and null byte
     29 </name>
     30 <file name="%LOGDIR/input463">
     31 %hex[one%0dtwo%0dthree]hex%
     32 %hex[four%00five]hex%
     33 </file>
     34 <command>
     35 -d @%LOGDIR/input463 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     36 </command>
     37 </client>
     38 
     39 #
     40 # Verify data after the test has been "shot"
     41 <verify>
     42 <protocol crlf="yes" nonewline="yes">
     43 POST /%TESTNUMBER HTTP/1.1
     44 Host: %HOSTIP:%HTTPPORT
     45 User-Agent: curl/%VERSION
     46 Accept: */*
     47 Content-Length: 19
     48 Content-Type: application/x-www-form-urlencoded
     49 
     50 onetwothreefourfive
     51 </protocol>
     52 </verify>
     53 </testcase>