cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: pulling HTTP status code out of response

From: Jami Amore <jami.amore_at_fedex.com>
Date: Tue, 28 Jan 2003 10:02:12 -0700

Sorry for the delay in my response. This does work after all...it was a user
error on my part.

I do have another question about retrieving information from the header,
though. Here is an example header I received from a data source internal to the
company I work for:
HTTP/1.1 200 OK
Date: Tue, 28 Jan 2003 16:54:27 GMT
Server: WebLogic WebLogic Server 6.1 SP4 11/08/2002 21:50:43 #221641
Content-Length: 2368
Content-Type: application/octet-stream
X-More-Data: N
X-Data-Source: ESI
X-Total-Records: 5
Connection: Close

I need to access the X-Total-Records field, which appears to be a field
created/used by the particular data source I am accessing. Is there a way in
curl to access that type of header information (application specific)?

Thank you,
Jami Amore

Daniel Stenberg wrote:

> On Mon, 20 Jan 2003, Jami Amore wrote:
>
> > I need to pull the HTTP status code (ie. 200) out of the HTTP response
> > using libcurl (the "easy" methods). I tried using curl_easy_getinfo with
> > CURLINFO_HTTP_CODE, but that didn't seem to work. Can someone please tell
> > me how to access that information?
>
> That is the prefered method to get it.
>
> Are you saying this doesn't work?
>
> --
> Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-28