xref: /curl/tests/data/test3204 (revision 00bef959)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6</keywords>
7</info>
8
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 304 Not Modified
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16ETag: "21025-dc7-39462498"
17
18</data>
19</reply>
20
21#
22# Client-side
23<client>
24<server>
25http
26</server>
27<name>
28Use --etag-compare and --etag-save on an existing file
29</name>
30<file name="%LOGDIR/etag%TESTNUMBER">
31"21025-dc7-39462498"
32</file>
33<command>
34http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-compare %LOGDIR/etag%TESTNUMBER --etag-save %LOGDIR/etag%TESTNUMBER
35</command>
36</client>
37
38# Verify that the file still exists with the correct etag value.
39<verify>
40<protocol>
41GET /%TESTNUMBER HTTP/1.1
42Host: %HOSTIP:%HTTPPORT
43User-Agent: curl/%VERSION
44Accept: */*
45If-None-Match: "21025-dc7-39462498"
46
47</protocol>
48<file name="%LOGDIR/etag%TESTNUMBER">
49"21025-dc7-39462498"
50</file>
51</verify>
52</testcase>
53