<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
HTTP GET
-O
-J
-z
--output-dir
--remote-time
</keywords>
</info>

<reply>
<data crlf="headers" nocheck="yes">
HTTP/1.1 302 Found swsclose
Date: Tue, 09 Nov 2010 14:49:00 GMT
Server: test-server/fake
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
Location: /existing%TESTNUMBER
Content-Length: 0
Connection: close

</data>
</reply>

<client>
<server>
http
</server>
<name>
-O -J -R -z must not re-date existing file on unmet condition
</name>
<file name="%LOGDIR/existing%TESTNUMBER">
keep-me
</file>
<command option="no-output,no-include">
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O -J -R -z "dec 12 12:00:00 2010 GMT" --output-dir %LOGDIR
</command>
</client>

<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*
If-Modified-Since: Sun, 12 Dec 2010 12:00:00 GMT

</protocol>
<file name="%LOGDIR/existing%TESTNUMBER">
keep-me
</file>
<postcheck>
%PERL -e 'exit((stat("%LOGDIR/existing%TESTNUMBER"))[9] == 960898200)'
</postcheck>
</verify>
</testcase>
