quickjs-tart

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

test47 (584B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP/1.0
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.0 200 OK swsclose
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 
     17 -foo- within foo -!foo-
     18 </data>
     19 </reply>
     20 
     21 #
     22 # Client-side
     23 <client>
     24 <server>
     25 http
     26 </server>
     27 <name>
     28 simple HTTP 1.0 GET
     29 </name>
     30 <command>
     31 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -0
     32 </command>
     33 </client>
     34 
     35 #
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 <protocol>
     39 GET /%TESTNUMBER HTTP/1.0
     40 Host: %HOSTIP:%HTTPPORT
     41 User-Agent: curl/%VERSION
     42 Accept: */*
     43 
     44 </protocol>
     45 </verify>
     46 
     47 </testcase>