curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl exit status on curl: (18) server did not report OK, got 426

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 23 Mar 2019 00:05:23 +0100 (CET)

On Fri, 22 Mar 2019, Kevin R. Bulgrien wrote:

> # For the log, report the exit code returned by the file transfer utility.
> (
> echo
> echo "Result = ${?}"

See? The first echo works so $? gets set to zero and then you store that, not
the original return value. If you remove that first echo things will be
different.

-- 
  / daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-23