Test Case: caches MUST treat Expires value of "yesterday" as in the past

825.431| starting test case test_case/rfc2616/invalidExpiresMakesStale-yesterday from test_clause/rfc2616/invalidExpiresMakesStale clause
825.431| step 1.1: trying to cache an entity with a valid Expires header

Subcase: cache something

825.431| starting sub-case test_case/rfc2616/cacheSmth
825.431| server accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.432| client connecting to 172.16.0.7:80; 3 attempt(s)
825.432| client at 172.16.0.1:4816 connected to 172.16.0.7:80
825.432| client will send 94 bytes (94 + 0)
GET http://172.16.0.1:8080/mgbouglrjeoy HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Connection: close\r\n
\r\n

825.432| client at 172.16.0.1:4816 expects to write to 172.16.0.7:80
825.432| client at 172.16.0.1:4816 wrote 94 bytes
825.432| client at 172.16.0.1:4816 stops writing to 172.16.0.7:80
825.432| client at 172.16.0.1:4816 expects to read from 172.16.0.7:80
825.433| server at 172.16.0.1:8080 accepted connection from 172.16.0.7:1761
825.433| server at 172.16.0.1:8080 expects to read from 172.16.0.7:1761
825.433| server at 172.16.0.1:8080 read 116 bytes
825.433| server got request headers (116 bytes)
GET /mgbouglrjeoy HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Max-Forwards: 10\r\n
Connection: close\r\n
Via: 1.1 172.16.0.1:8080\r\n
\r\n

825.434| expecting no message body
825.434| no message body data to parse
825.434| server expects no more request data (after 116 + 0 = 116 bytes)
825.434| server at 172.16.0.1:8080 stops reading from 172.16.0.7:1761
825.434| server will send 219 bytes
HTTP/1.1 200 OK\r\n
Cache-Control: public\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Expires: Wed, 28 Jan 2004 00:18:46 GMT\r\n
Date: Tue, 28 Jan 2003 00:32:33 GMT\r\n
Connection: close\r\n
Content-Length: 15\r\n
\r\n
body-ryvqmzdzzj

825.434| server at 172.16.0.1:8080 expects to write to 172.16.0.7:1761
825.435| server at 172.16.0.1:8080 wrote 219 bytes
825.435| server at 172.16.0.1:8080 stops writing to 172.16.0.7:1761
825.435| server stops servicing connection with 172.16.0.7:1761
825.435| server at 172.16.0.1:8080 closing connection to 172.16.0.7:1761
825.437| client at 172.16.0.1:4816 read 324 bytes
825.437| client parsed response headers (309 bytes)
HTTP/1.1 200 OK\r\n
Date: Tue, 28 Jan 2003 00:32:32 GMT\r\n
Server: Apache/2.1.0-dev (Unix)\r\n
Cache-Control: public\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Expires: Wed, 28 Jan 2004 00:18:46 GMT\r\n
Content-Length: 15\r\n
Via: 1.1 172.16.0.1:8080\r\n
Connection: close\r\n
Content-Type: text/plain; charset=ISO-8859-1\r\n
\r\n

825.437| expecting 15 bytes of message body based on Content-Length header
825.437| parsed 15 bytes of message body:
body-ryvqmzdzzj

825.438| client expects no more data (after 309 + 15 = 324 bytes)
825.438| content size: 15
825.438| client at 172.16.0.1:4816 stops reading from 172.16.0.7:80
825.438| client stops servicing connection with 172.16.0.7:80
825.438| client at 172.16.0.1:4816 closing connection to 172.16.0.7:80
825.438| server stops accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.438| finished case: test_case/rfc2616/cacheSmth
825.438| result code: success
825.438| result reason: DUT proxied the transaction and possibly cached the response

825.438| step 1.2: verifying whether the cache cached the entity with a valid Expires

Subcase: check that a given entity instance is cached and fresh

825.438| starting sub-case test_case/rfc2616/checkCached-fresh
825.438| server accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.439| client connecting to 172.16.0.7:80; 3 attempt(s)
825.439| client at 172.16.0.1:4817 connected to 172.16.0.7:80
825.439| client will send 94 bytes (94 + 0)
GET http://172.16.0.1:8080/mgbouglrjeoy HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Connection: close\r\n
\r\n

825.439| client at 172.16.0.1:4817 expects to write to 172.16.0.7:80
825.439| client at 172.16.0.1:4817 wrote 94 bytes
825.439| client at 172.16.0.1:4817 stops writing to 172.16.0.7:80
825.439| client at 172.16.0.1:4817 expects to read from 172.16.0.7:80
825.441| client at 172.16.0.1:4817 read 332 bytes
825.442| client parsed response headers (317 bytes)
HTTP/1.1 200 OK\r\n
Date: Tue, 28 Jan 2003 00:32:32 GMT\r\n
Server: Apache/2.1.0-dev (Unix)\r\n
Cache-Control: public\r\n
Expires: Wed, 28 Jan 2004 00:18:46 GMT\r\n
Via: 1.1 172.16.0.1:8080\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Content-Length: 15\r\n
Content-Type: text/plain; charset=ISO-8859-1\r\n
Age: 0\r\n
Connection: close\r\n
\r\n

825.442| expecting 15 bytes of message body based on Content-Length header
825.442| parsed 15 bytes of message body:
body-ryvqmzdzzj

825.442| client expects no more data (after 317 + 15 = 332 bytes)
825.442| content size: 15
825.442| client at 172.16.0.1:4817 stops reading from 172.16.0.7:80
825.442| client stops servicing connection with 172.16.0.7:80
825.442| client at 172.16.0.1:4817 closing connection to 172.16.0.7:80
825.442| server stops accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.443| finished case: test_case/rfc2616/checkCached-fresh
825.443| result code: success
825.443| result reason: at the time of the request, entity instance appeared to be cached and fresh

825.443| step 1.3: attempting to cache an entity with Expires value of "yesterday"

Subcase: cache something

825.443| starting sub-case test_case/rfc2616/cacheSmth
825.443| server accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.443| client connecting to 172.16.0.7:80; 3 attempt(s)
825.443| client at 172.16.0.1:4818 connected to 172.16.0.7:80
825.444| client will send 94 bytes (94 + 0)
GET http://172.16.0.1:8080/uqmhhynywfyt HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Connection: close\r\n
\r\n

825.444| client at 172.16.0.1:4818 expects to write to 172.16.0.7:80
825.444| client at 172.16.0.1:4818 wrote 94 bytes
825.444| client at 172.16.0.1:4818 stops writing to 172.16.0.7:80
825.444| client at 172.16.0.1:4818 expects to read from 172.16.0.7:80
825.445| server at 172.16.0.1:8080 accepted connection from 172.16.0.7:1762
825.445| server at 172.16.0.1:8080 expects to read from 172.16.0.7:1762
825.445| server at 172.16.0.1:8080 read 116 bytes
825.445| server got request headers (116 bytes)
GET /uqmhhynywfyt HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Max-Forwards: 10\r\n
Connection: close\r\n
Via: 1.1 172.16.0.1:8080\r\n
\r\n

825.445| expecting no message body
825.445| no message body data to parse
825.445| server expects no more request data (after 116 + 0 = 116 bytes)
825.445| server at 172.16.0.1:8080 stops reading from 172.16.0.7:1762
825.446| server will send 199 bytes
HTTP/1.1 200 OK\r\n
Cache-Control: public\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Expires: yesterday\r\n
Date: Tue, 28 Jan 2003 00:32:33 GMT\r\n
Connection: close\r\n
Content-Length: 15\r\n
\r\n
body-vksylrksvg

825.446| server at 172.16.0.1:8080 expects to write to 172.16.0.7:1762
825.446| server at 172.16.0.1:8080 wrote 199 bytes
825.446| server at 172.16.0.1:8080 stops writing to 172.16.0.7:1762
825.446| server stops servicing connection with 172.16.0.7:1762
825.446| server at 172.16.0.1:8080 closing connection to 172.16.0.7:1762
825.447| client at 172.16.0.1:4818 read 304 bytes
825.448| client parsed response headers (289 bytes)
HTTP/1.1 200 OK\r\n
Date: Tue, 28 Jan 2003 00:32:32 GMT\r\n
Server: Apache/2.1.0-dev (Unix)\r\n
Cache-Control: public\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Expires: yesterday\r\n
Content-Length: 15\r\n
Via: 1.1 172.16.0.1:8080\r\n
Connection: close\r\n
Content-Type: text/plain; charset=ISO-8859-1\r\n
\r\n

825.448| expecting 15 bytes of message body based on Content-Length header
825.448| parsed 15 bytes of message body:
body-vksylrksvg

825.448| client expects no more data (after 289 + 15 = 304 bytes)
825.448| content size: 15
825.448| client at 172.16.0.1:4818 stops reading from 172.16.0.7:80
825.449| client stops servicing connection with 172.16.0.7:80
825.449| client at 172.16.0.1:4818 closing connection to 172.16.0.7:80
825.449| server stops accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.449| finished case: test_case/rfc2616/cacheSmth
825.449| result code: success
825.449| result reason: DUT proxied the transaction and possibly cached the response

825.449| step 1.4: verifying whether cache cached the entity with Expires value of "yesterday"

Subcase: check that a given entity instance is not cached or cached but stale or cached and fresh

825.449| starting sub-case test_case/rfc2616/checkCached-any
825.449| server accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.449| client connecting to 172.16.0.7:80; 3 attempt(s)
825.450| client at 172.16.0.1:4819 connected to 172.16.0.7:80
825.450| client will send 94 bytes (94 + 0)
GET http://172.16.0.1:8080/uqmhhynywfyt HTTP/1.1\r\n
Host: 172.16.0.1:8080\r\n
Connection: close\r\n
\r\n

825.450| client at 172.16.0.1:4819 expects to write to 172.16.0.7:80
825.450| client at 172.16.0.1:4819 wrote 94 bytes
825.450| client at 172.16.0.1:4819 stops writing to 172.16.0.7:80
825.450| client at 172.16.0.1:4819 expects to read from 172.16.0.7:80
825.452| client at 172.16.0.1:4819 read 312 bytes
825.452| client parsed response headers (297 bytes)
HTTP/1.1 200 OK\r\n
Date: Tue, 28 Jan 2003 00:32:32 GMT\r\n
Server: Apache/2.1.0-dev (Unix)\r\n
Cache-Control: public\r\n
Expires: yesterday\r\n
Via: 1.1 172.16.0.1:8080\r\n
Last-Modified: Mon, 28 Jan 2002 00:18:46 GMT\r\n
Content-Length: 15\r\n
Content-Type: text/plain; charset=ISO-8859-1\r\n
Age: 0\r\n
Connection: close\r\n
\r\n

825.452| expecting 15 bytes of message body based on Content-Length header
825.452| parsed 15 bytes of message body:
body-vksylrksvg

825.453| client expects no more data (after 297 + 15 = 312 bytes)
825.453| content size: 15
825.453| client at 172.16.0.1:4819 stops reading from 172.16.0.7:80
825.453| client stops servicing connection with 172.16.0.7:80
825.453| client at 172.16.0.1:4819 closing connection to 172.16.0.7:80
825.453| server stops accepting HTTP queries at coad-dev.measurement-factory.com:8080
825.453| finished case: test_case/rfc2616/checkCached-any
825.453| result code: success
825.453| result reason: at the time of the request, entity instance appeared to be cached and fresh

825.453| finished case: test_case/rfc2616/invalidExpiresMakesStale-yesterday
825.453| result code: violation
825.453| result reason: cache did not treat Expires value of "yesterday" as in the past