quickjs-tart

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

test1328 (987B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 globbing
      7 --fail
      8 </keywords>
      9 </info>
     10 
     11 <reply>
     12 <data>
     13 HTTP/1.1 404 NOT OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Content-Length: 6
     16 Funny-head: yesyes
     17 
     18 -noo-
     19 </data>
     20 <data1>
     21 HTTP/1.1 200 OK
     22 Date: Tue, 09 Nov 2010 14:49:00 GMT
     23 Content-Length: 6
     24 Connection: close
     25 Funny-head: yesyes
     26 
     27 -yes-
     28 </data1>
     29 <datacheck>
     30 HTTP/1.1 200 OK
     31 Date: Tue, 09 Nov 2010 14:49:00 GMT
     32 Content-Length: 6
     33 Connection: close
     34 Funny-head: yesyes
     35 
     36 -yes-
     37 </datacheck>
     38 </reply>
     39 
     40 #
     41 # Client-side
     42 <client>
     43 <server>
     44 http
     45 </server>
     46 <name>
     47 HTTP GET a globbed range with -f
     48 </name>
     49 <command>
     50 -f 'http://%HOSTIP:%HTTPPORT/[%TESTNUMBER0000-%TESTNUMBER0001]' -o %LOGDIR/#1
     51 </command>
     52 </client>
     53 
     54 #
     55 # Verify data after the test has been "shot"
     56 <verify>
     57 <protocol>
     58 GET /%TESTNUMBER0000 HTTP/1.1
     59 Host: %HOSTIP:%HTTPPORT
     60 User-Agent: curl/%VERSION
     61 Accept: */*
     62 
     63 GET /%TESTNUMBER0001 HTTP/1.1
     64 Host: %HOSTIP:%HTTPPORT
     65 User-Agent: curl/%VERSION
     66 Accept: */*
     67 
     68 </protocol>
     69 </verify>
     70 </testcase>