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 nocheck="yes">
     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 <data1>
     23 HTTP/1.1 200 OK
     24 Date: Thu, 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/1128 http://%HOSTIP:%HTTPPORT/11280001 -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 <strip>
     52 ^User-Agent:.*
     53 </strip>
     54 <protocol>
     55 GET /1128 HTTP/1.1
     56 Host: %HOSTIP:%HTTPPORT
     57 Accept: */*
     58 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
     59 
     60 GET /11280001 HTTP/1.1
     61 Host: %HOSTIP:%HTTPPORT
     62 Accept: */*
     63 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
     64 
     65 </protocol>
     66 
     67 <stdout>
     68 HTTP/1.1 200 OK
     69 Date: Thu, 09 Nov 2010 14:49:00 GMT
     70 Server: test-server/fake
     71 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
     72 Content-Length: 11
     73 Content-Type: text/html
     74 
     75 HTTP/1.1 200 OK
     76 Date: Thu, 09 Nov 2010 14:49:01 GMT
     77 Server: test-server/fake
     78 Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
     79 Content-Length: 11
     80 Content-Type: text/html
     81 
     82 0123456789
     83 </stdout>
     84 </verify>
     85 </testcase>
     86