<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
etags
</keywords>
</info>

# Server-side
<reply>
<data crlf="headers">
HTTP/1.1 200 OK
ETag: "remote"
Content-Length: 0

</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<name>
--etag-save to stdout append to file
</name>
<command option="no-stdout">
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --etag-save - >> %LOGDIR/out%TESTNUMBER
</command>

<file name="%LOGDIR/out%TESTNUMBER">
initial content
</file>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

</protocol>
<file name="%LOGDIR/out%TESTNUMBER">
initial content
"remote"
</file>
</verify>
</testcase>
