2013-10-07 16:42:21 +04:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
-z
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data nocheck="yes">
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2013-10-07 16:42:21 +04:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2010 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 12:35:54 +03:00
|
|
|
<name>
|
2013-10-07 16:42:21 +04:00
|
|
|
HTTP with -z + -w response_code and simulated 304
|
2023-10-04 12:35:54 +03:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 19:38:26 +03:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "-dec 12 12:00:00 1999 GMT" -w '%{response_code}'
|
2013-10-07 16:42:21 +04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 19:38:26 +03:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2013-10-07 16:42:21 +04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 14:45:24 +03:00
|
|
|
User-Agent: curl/%VERSION
|
2013-10-07 16:42:21 +04:00
|
|
|
Accept: */*
|
|
|
|
If-Unmodified-Since: Sun, 12 Dec 1999 12:00:00 GMT
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<stdout nonewline="yes">
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 17:00:03 +03:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2013-10-07 16:42:21 +04:00
|
|
|
Server: test-server/fake
|
|
|
|
Last-Modified: Tue, 13 Jun 2010 12:10:00 GMT
|
|
|
|
ETag: "21025-dc7-39462498"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
304
|
|
|
|
</stdout>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|