cURL / Mailing Lists / curl-users / Single Mail


Re: Is there a API to get HTTP Response headers

From: Daniel Stenberg <>
Date: Wed, 22 Jun 2005 20:17:05 +0200 (CEST)

On Wed, 22 Jun 2005, Seethaprasad wrote:

> Iam using libCurl in my project, to make http request. I need to read the
> response headers which is returned as part of the response.
> I looked at the code and didn't find a API, which gives me the header value
> given the header name. Any help in this would be helpful.
> The other workaround possible is to provide a callback to Curl Lib which
> gets called when headers are parsed.

The "workaround" is the API for getting the response headers.

You'll get it called once for each full header received, nice and clean.

(PS, try the curl-library list for libcurl questions.)

  Commercial curl and libcurl Technical Support:
Received on 2005-06-22