HTTP
HTTP GET
#
# Server-side
HTTP/1.1 304 Not Modified
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
ETag: "21025-dc7-39462498"
#
# Client-side
http
Use --etag-compare and --etag-save on an existing file
"21025-dc7-39462498"
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-compare %LOGDIR/etag%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER
# Verify that the file still exists with the correct etag value.
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
If-None-Match: "21025-dc7-39462498"
"21025-dc7-39462498"