cURL / Mailing Lists / curl-library / Single Mail


Re: VS 2008

From: Dan Fandrich <>
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

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2009-01-23