cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_getinfo problem : to retrieve the http error codes

From: Michael Hecker <Hecker.Michael_at_gmx.de>
Date: Fri, 21 Dec 2007 12:17:34 +0100

Hello Shilpi,
you didn't give me much information but I think this is what you are
looking for:

long code;
curl_easy_getinfo (curl_handle, CURLINFO_RESPONSE_CODE, &code);

CString a;
a.Format("Code: %d",code);
AfxMessageBox(a);

Michael

Shilpi Aggarwal schrieb:
>
>
>
> Hi
> Then which function should I use to return HTTP error codes (>300).
>
> Thanks
> --
> Shilpi Aggarwal
>
> "A scientist builds in order to learn;
> an engineer learns in order to build."
Received on 2007-12-21