Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: curl -Z always exits 0
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Jordan Geoghegan via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 13 Apr 2021 12:41:22 -0700
On 4/12/21 10:49 PM, Daniel Stenberg via curl-users wrote:
> On Mon, 12 Apr 2021, Jordan Geoghegan via curl-users wrote:
>
>> $ curl -Z --fail -s https://httpbin.org/status/404
>> $ echo $?
>> 0
>>
>> curl 7.72.0 (x86_64-unknown-openbsd6.8)
>
> Thanks for your report!
>
> I can reproduce with my 7.74.0 version. But when using my 7.76.0 I get:
>
> $ curl -Z --fail -s https://httpbin.org/status/404
> $ echo $?
> 22
>
> I looked at the diff between these two versions and I *believe* this was fixed mostly by accident with the introduction of --fail-with-body.
>
>
Hello,
Thank you for confirming that for me. It does appear to have been fixed with that commit. I'll just have to wait for 7.76 to make it's way into my OS's package repos.
Regards,
Jordan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-04-13
Date: Tue, 13 Apr 2021 12:41:22 -0700
On 4/12/21 10:49 PM, Daniel Stenberg via curl-users wrote:
> On Mon, 12 Apr 2021, Jordan Geoghegan via curl-users wrote:
>
>> $ curl -Z --fail -s https://httpbin.org/status/404
>> $ echo $?
>> 0
>>
>> curl 7.72.0 (x86_64-unknown-openbsd6.8)
>
> Thanks for your report!
>
> I can reproduce with my 7.74.0 version. But when using my 7.76.0 I get:
>
> $ curl -Z --fail -s https://httpbin.org/status/404
> $ echo $?
> 22
>
> I looked at the diff between these two versions and I *believe* this was fixed mostly by accident with the introduction of --fail-with-body.
>
>
Hello,
Thank you for confirming that for me. It does appear to have been fixed with that commit. I'll just have to wait for 7.76 to make it's way into my OS's package repos.
Regards,
Jordan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2021-04-13