cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: VS 2008

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 23 Jan 2009 11:02:10 -0800

On Fri, Jan 23, 2009 at 01:47:31PM +0100, Christian wrote:
> sorry again! next time I will read the manual first! it works now fine. but
> (and I promis I have read the manual this time) is there an easy way, to catch
> the reponse from the server (like 400 bad request) AND(!) the error-message
> (which is in body then, so normal content)?

The body is read like any other download, using a write callback function.
The error code is read using the CURLINFO_RESPONSE_CODE option to
curl_easy_getinfo.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-01-23