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

<reply>
<data nocheck="yes">
HTTP/1.1 200 OK swsclose
Content-Length: 12
Connection: close
Content-Type: text/html

new content
</data>
</reply>

<client>
<file name="%LOGDIR/save.txt">
exists before command runs
</file>
<file1 name="%LOGDIR/save-1.txt">
exists before command runs
</file1>
<server>
http
</server>
<name>
--no-clobber with extension and an added number
</name>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/save.txt --no-clobber
</command>
</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>

# this file should be untouched
<file name="%LOGDIR/save.txt">
exists before command runs
</file>
<file2 name="%LOGDIR/save-2.txt">
new content
</file2>
</verify>
</testcase>
