cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Error code 9009 from CLI

From: James Briggs <mail_at_jbriggs.me>
Date: Tue, 19 Feb 2013 12:32:29 +1100

Fair point. Rubbish coding on my part - I've fixed it up now. It was still
returning correct codes with the % in there though. Unfortunately I've not
been able to recreate the 9009 on site myself so wonder if it was just a
weird fluke as the result of a user's actions...

On 15 February 2013 21:54, Gisle Vanem <gvanem_at_broadpark.no> wrote:

> "James Briggs" <mail_at_jbriggs.me> wrote:
>
> Windows 7 Enterprise - the return code from running curl.exe - it's not an
>> actual message, just the result of the ERRORLEVEL directive:
>>
>> "curl.exe" -silent -x %PROXYINFO% -m 300 -O %TESTURL%
>> echo Download #!ITERATION! completed or timed-out at %TIME% >> "log.txt"
>> if %ERRORLEVEL% NEQ 0 echo ERROR - curl returned error code %ERRORLEVEL%
>>
>
> "%ERRORLEVEL%" is not the same as "ERRORLEVEL". Read this:
> http://blogs.msdn.com/b/**oldnewthing/archive/2008/09/**26/8965755.aspx<http://blogs.msdn.com/b/oldnewthing/archive/2008/09/26/8965755.aspx>
>
> So try to change your last line to:
> if ERRORLEVEL NEQ 0 echo ERROR - curl returned error code %ERRORLEVEL%
>
> --gv
> ------------------------------**------------------------------**-------
> List admin: http://cool.haxx.se/list/**listinfo/curl-users<http://cool.haxx.se/list/listinfo/curl-users>
> FAQ: http://curl.haxx.se/docs/faq.**html<http://curl.haxx.se/docs/faq.html>
> Etiquette: http://curl.haxx.se/mail/**etiquette.html<http://curl.haxx.se/mail/etiquette.html>
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-19