cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTP Error messages

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Sep 2006 19:53:59 +0200 (CEST)

On Fri, 29 Sep 2006, Parvinder Singh Arora wrote:

> If i set the CURLOPT_FAILONERROR to true i get the http error codes. Can i
> get the HTTP error messages as well ? like HTTP Error 503 is "service
> unavailable"

You mean the actual text that follows the HTTP response code? You can only get
that by parsing the response headers yourself. Don't assume that text will
contain meaningful info at all times.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-09-29