From 9ea769e15f60f8bebf42bffd708658296a812d6e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 5 Dec 2019 16:57:40 +0100 Subject: etag: allow both --etag-compare and --etag-save in same cmdline Fixes #4669 Closes #4678 --- tests/data/test343 | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 tests/data/test343 (limited to 'tests/data/test343') diff --git a/tests/data/test343 b/tests/data/test343 new file mode 100644 index 000000000..e55a181d8 --- /dev/null +++ b/tests/data/test343 @@ -0,0 +1,61 @@ + + + +HTTP +HTTP GET + + + +# +# 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 2000 12:10:00 GMT +ETag: "21025-dc7-11111" +Accept-Ranges: bytes +Content-Length: 0 +Connection: close +Content-Type: text/html +Funny-head: yesyes + + + + +# +# Client-side + + +http + + +Both --etag-compare and --etag-save to save new Etag + + +21025-dc7-39462498 + + +http://%HOSTIP:%HTTPPORT/343 --etag-compare log/etag343 --etag-save log/out343 + + + +# +# Verify data after the test has been "shot" + + +^User-Agent:.* + + +GET /343 HTTP/1.1 +Host: %HOSTIP:%HTTPPORT +Accept: */* +If-None-Match: "21025-dc7-39462498" + + + +21025-dc7-11111 + + + -- cgit v1.2.3