1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6If-Modified-Since
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data nocheck="yes">
13HTTP/1.1 200 OK
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
17Content-Length: 11
18Content-Type: text/html
19
200123456789
21</data>
22<data1>
23HTTP/1.1 200 OK
24Date: Thu, 09 Nov 2010 14:49:01 GMT
25Server: test-server/fake
26Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
27Content-Length: 11
28Content-Type: text/html
29
300123456789
31</data1>
32</reply>
33
34#
35# Client-side
36<client>
37<server>
38http
39</server>
40 <name>
41HTTP 200 If-Modified-Since with old+new documents
42 </name>
43 <command>
44http://%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>
55GET /1128 HTTP/1.1
56Host: %HOSTIP:%HTTPPORT
57Accept: */*
58If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
59
60GET /11280001 HTTP/1.1
61Host: %HOSTIP:%HTTPPORT
62Accept: */*
63If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
64
65</protocol>
66
67<stdout>
68HTTP/1.1 200 OK
69Date: Thu, 09 Nov 2010 14:49:00 GMT
70Server: test-server/fake
71Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
72Content-Length: 11
73Content-Type: text/html
74
75HTTP/1.1 200 OK
76Date: Thu, 09 Nov 2010 14:49:01 GMT
77Server: test-server/fake
78Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
79Content-Length: 11
80Content-Type: text/html
81
820123456789
83</stdout>
84</verify>
85</testcase>
86