Menu

#1084 curl -f stops after first error

closed-fixed
5
2013-06-21
2012-01-29
No

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

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2012-01-30

    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!?

     
  • Juan Barreto

    Juan Barreto - 2012-01-30

    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.

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-01-30

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

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-02-01

    I've been able to repeat the problem, I've written a test case for it and I found the commit that introduced this problem: fa775b56de777

    Now I just need to fix it, which turned out a bit more work than I expected so it doesn't work yet.

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-02-06

    Thanks, fixed now in commit 65103efe49a733b

     
  • Daniel Stenberg

    Daniel Stenberg - 2012-02-06
    • status: open --> closed-fixed