cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: error handling in non-html transfer

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Mar 2013 22:35:59 +0100 (CET)

On Fri, 22 Mar 2013, Adam Kellas wrote:

> A browser handles errors by rendering an error message in html and not
> exiting,

The server returns an error code in the HTTP response that curl reads and can
let you know about. That's how HTTP servers return errors to HTTP clients, the
message you speak if is only for humans.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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-03-22