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

# Server-side
<reply>
<data nocheck="yes">
HTTP/1.1 503 Service Unavailable
Content-Length: 6
Connection: close

-foo-
</data>
</reply>

# Client-side
<client>
<server>
http
</server>
<features>
Debug
</features>
<setenv>
CURL_DBG_TRUNCATE_FAIL=1
</setenv>
<name>
--retry when the output file cannot be truncated
</name>
<command>
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --retry 2 --retry-delay 0
</command>
</client>

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

</protocol>
</verify>
</testcase>
