quickjs-tart

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

test1128 (1525B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 If-Modified-Since
      7 </keywords>
      8 </info>
      9 #
     10 # Server-side
     11 <reply>
     12 <data nocheck="yes">
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
     17 Content-Length: 11
     18 Content-Type: text/html
     19 
     20 0123456789
     21 </data>
     22 <data1>
     23 HTTP/1.1 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:01 GMT
     25 Server: test-server/fake
     26 Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
     27 Content-Length: 11
     28 Content-Type: text/html
     29 
     30 0123456789
     31 </data1>
     32 </reply>
     33 
     34 #
     35 # Client-side
     36 <client>
     37 <server>
     38 http
     39 </server>
     40 <name>
     41 HTTP 200 If-Modified-Since with old+new documents
     42 </name>
     43 <command>
     44 http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 -z "dec 12 12:00:00 1999 GMT"
     45 </command>
     46 </client>
     47 
     48 #
     49 # Verify data after the test has been "shot"
     50 <verify>
     51 <protocol>
     52 GET /%TESTNUMBER HTTP/1.1
     53 Host: %HOSTIP:%HTTPPORT
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
     57 
     58 GET /%TESTNUMBER0001 HTTP/1.1
     59 Host: %HOSTIP:%HTTPPORT
     60 User-Agent: curl/%VERSION
     61 Accept: */*
     62 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
     63 
     64 </protocol>
     65 
     66 <stdout>
     67 HTTP/1.1 200 OK
     68 Date: Tue, 09 Nov 2010 14:49:00 GMT
     69 Server: test-server/fake
     70 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
     71 Content-Length: 11
     72 Content-Type: text/html
     73 
     74 HTTP/1.1 200 OK
     75 Date: Tue, 09 Nov 2010 14:49:01 GMT
     76 Server: test-server/fake
     77 Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
     78 Content-Length: 11
     79 Content-Type: text/html
     80 
     81 0123456789
     82 </stdout>
     83 </verify>
     84 </testcase>