<?xml version="1.0" encoding="US-ASCII"?>
<testcase>
<info>
<keywords>
HTTP
retry
--parallel
progressbar
</keywords>
</info>
<reply>
<data crlf="headers" nocheck="yes">
HTTP/1.1 200 OK swsbounce swsclose
Content-Length: 10
Connection: close

bad
</data>
<data1 crlf="headers" nocheck="yes">
HTTP/1.1 200 OK swsbounce swsclose
Content-Length: 10
Connection: close

second
</data1>
<data2 crlf="headers" nocheck="yes">
HTTP/1.1 200 OK
Content-Length: 10
Connection: close

complete!
</data2>
</reply>
<client>
<server>
http
</server>
<name>
parallel progress after discarded retry downloads
</name>
<command option="no-output,no-include">
--parallel --retry 2 --retry-all-errors --retry-delay 0.1 --stderr %LOGDIR/progress%TESTNUMBER -o %LOGDIR/outfile%TESTNUMBER http://%HOSTIP:%HTTPPORT/%TESTNUMBER
</command>
</client>
<verify>
<protocol crlf="headers">
GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /%TESTNUMBER HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

</protocol>
<file1 name="%LOGDIR/outfile%TESTNUMBER">
complete!
</file1>
<file2 name="%LOGDIR/progress%TESTNUMBER" mode="text">
100 -- 10 0
</file2>
<stripfile2>
$_ = /\r\s*(\d+|--)\s+(\d+|--)\s+(\d+)\s+(\d+)\s+\d+\s+0\s+[ 0-9.:kMGTPEdhmy>]*\r?\n$/ ? "$1 $2 $3 $4\r\n" : "";
</stripfile2>
</verify>
</testcase>
