• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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<protocol>
52GET /1128 HTTP/1.1
53Host: %HOSTIP:%HTTPPORT
54User-Agent: curl/%VERSION
55Accept: */*
56If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
57
58GET /11280001 HTTP/1.1
59Host: %HOSTIP:%HTTPPORT
60User-Agent: curl/%VERSION
61Accept: */*
62If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT
63
64</protocol>
65
66<stdout>
67HTTP/1.1 200 OK
68Date: Thu, 09 Nov 2010 14:49:00 GMT
69Server: test-server/fake
70Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT
71Content-Length: 11
72Content-Type: text/html
73
74HTTP/1.1 200 OK
75Date: Thu, 09 Nov 2010 14:49:01 GMT
76Server: test-server/fake
77Last-Modified: Tue, 13 Jun 2002 12:10:00 GMT
78Content-Length: 11
79Content-Type: text/html
80
810123456789
82</stdout>
83</verify>
84</testcase>
85