Home | History | Annotate | Download | only in data
      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>
     13 HTTP/1.1 200 OK
     14 Date: Thu, 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 <datacheck>
     23 HTTP/1.1 200 OK
     24 Date: Thu, 09 Nov 2010 14:49:00 GMT
     25 Server: test-server/fake
     26 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
     27 Content-Length: 11
     28 Content-Type: text/html
     29 
     30 </datacheck>
     31 </reply>
     32 
     33 #
     34 # Client-side
     35 <client>
     36 <server>
     37 http
     38 </server>
     39  <name>
     40 HTTP 200 If-Modified-Since with older document
     41  </name>
     42  <command>
     43 http://%HOSTIP:%HTTPPORT/1127 -z "dec 12 12:00:00 1999 GMT"
     44 </command>
     45 </client>
     46 
     47 #
     48 # Verify data after the test has been "shot"
     49 <verify>
     50 <strip>
     51 ^User-Agent:.*
     52 </strip>
     53 <protocol>
     54 GET /1127 HTTP/1.1
     55 Host: %HOSTIP:%HTTPPORT
     56 Accept: */*
     57 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
     58 
     59 </protocol>
     60 </verify>
     61 </testcase>
     62