curl / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Kevin R. Bulgrien <KevinB_at_SystemsDesignUSA.com>
Date: Sat, 23 Mar 2019 20:44:11 -0500

Wow, just wow. That was supposed
 to be ${RET} and all this time I didn't notice it... Bah... Thanks though.

On March 22, 2019 6:05:23 PM CDT, Daniel Stenberg <daniel_at_haxx.se> wrote:
>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

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

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