From 0c8e6f598a88ad3e02c42642a47026044cd0ceac Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 13 May 2011 08:55:15 +0200 Subject: tests: added HTTP If-Modified-Since tests Added test 1126 and 1127 to verify curl's behaviour when If-Modified-Since is used and a 200 is returned. The list of test cases in Makefile.am is now sorted numerically. --- tests/data/test1126 | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/data/test1126 (limited to 'tests/data/test1126') diff --git a/tests/data/test1126 b/tests/data/test1126 new file mode 100644 index 000000000..52f4db411 --- /dev/null +++ b/tests/data/test1126 @@ -0,0 +1,52 @@ + + + +HTTP +HTTP GET +If-Modified-Since + + +# +# Server-side + + +HTTP/1.1 200 OK +Date: Thu, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2003 12:10:00 GMT +Content-Length: 11 +Content-Type: text/html + +0123456789 + + + +# +# Client-side + + +http + + +HTTP 200 If-Modified-Since with newer document + + +http://%HOSTIP:%HTTPPORT/1126 -z "dec 12 12:00:00 1999 GMT" + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /1126 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT + + + + -- cgit v1.2.3