quickjs-tart

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

test752 (1097B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 -f
      7 --retry
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data crlf="yes">
     15 HTTP/1.1 404 nopes
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Server: test-server/fake
     18 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     19 ETag: "21025-dc7-39462498"
     20 Accept-Ranges: bytes
     21 Content-Length: 6
     22 Connection: close
     23 Content-Type: text/html
     24 Funny-head: yesyes
     25 
     26 -foo-
     27 </data>
     28 
     29 <datacheck crlf="yes">
     30 HTTP/1.1 404 nopes
     31 Date: Tue, 09 Nov 2010 14:49:00 GMT
     32 Server: test-server/fake
     33 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     34 ETag: "21025-dc7-39462498"
     35 Accept-Ranges: bytes
     36 Content-Length: 6
     37 Connection: close
     38 Content-Type: text/html
     39 Funny-head: yesyes
     40 
     41 </datacheck>
     42 </reply>
     43 
     44 #
     45 # Client-side
     46 <client>
     47 <server>
     48 http
     49 </server>
     50 <name>
     51 --retry and -f on a HTTP 404 response
     52 </name>
     53 <command>
     54 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -f --retry 1
     55 </command>
     56 </client>
     57 
     58 #
     59 # Verify data after the test has been "shot"
     60 <verify>
     61 <protocol crlf="yes">
     62 GET /%TESTNUMBER HTTP/1.1
     63 Host: %HOSTIP:%HTTPPORT
     64 User-Agent: curl/%VERSION
     65 Accept: */*
     66 
     67 </protocol>
     68 <errorcode>
     69 22
     70 </errorcode>
     71 </verify>
     72 </testcase>