quickjs-tart

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

test48 (773B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP HEAD
      6 -G
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <servercmd>
     13 connection-monitor
     14 </servercmd>
     15 <data>
     16 HTTP/1.1 200 OK
     17 Date: Tue, 09 Nov 2010 14:49:00 GMT
     18 
     19 </data>
     20 </reply>
     21 
     22 #
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 HTTP with -d and -G and -I
     30 </name>
     31 <command>
     32 -d "foo=moo&moo=poo" http://%HOSTIP:%HTTPPORT/%TESTNUMBER -G -I http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     33 </command>
     34 </client>
     35 
     36 #
     37 # Verify data after the test has been "shot"
     38 <verify>
     39 <protocol>
     40 HEAD /%TESTNUMBER?foo=moo&moo=poo HTTP/1.1
     41 Host: %HOSTIP:%HTTPPORT
     42 User-Agent: curl/%VERSION
     43 Accept: */*
     44 
     45 HEAD /%TESTNUMBER?foo=moo&moo=poo HTTP/1.1
     46 Host: %HOSTIP:%HTTPPORT
     47 User-Agent: curl/%VERSION
     48 Accept: */*
     49 
     50 [DISCONNECT]
     51 </protocol>
     52 </verify>
     53 </testcase>