cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[ curl-Bugs-3481223 ] curl -f stops after first error

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 30 Jan 2012 13:06:21 -0800

Bugs item #3481223, was opened at 2012-01-28 21:08
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481223&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: client module
Group: wrong behaviour
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Juan Barreto (alucard2k)
Assigned to: Daniel Stenberg (bagder)
Summary: curl -f stops after first error

Initial Comment:
Version:
curl 7.24.0 (i386-pc-win32) libcurl/7.24.0 OpenSSL/0.9.8t zlib/1.2.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate Largefile NTLM SSL SSPI libz

When trying to download a group of files with the -f option stops after the first error.

This message appears when a file not found error occurs:
curl: (22) The requested URL returned error: 404

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2012-01-30 13:06

Message:
Ah, I wasn't aware of the modified behavior. I'll look into it...

----------------------------------------------------------------------

Comment By: Juan Barreto (alucard2k)
Date: 2012-01-30 12:48

Message:
I expect it to continue with the remaining of elements in the list.

If for example I try to download this list of files:

curl -Of http://www.example.com/dir/file[001-999].txt

And file003.txt does not exist, curl stops and does not continue with the
rest of the files.

Unless this behavior has changed, but version 7.20 used to work this way.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2012-01-30 12:42

Message:
I'm sorry, but how exactly did you expect it to work? It is documented to
"Fail silently (no output at all) on server errors." and from what I
understand it did exactly that!?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3481223&group_id=976
Received on 2012-01-30

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET