cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl parse http headers

From: Joe N. <jnardone_at_gmail.com>
Date: Tue, 22 May 2007 22:15:34 -0400

pepone.onrez wrote:
> Hi i'm new to libcurl, I trying to make same http client tools using
> libcurl.
That's great. You should check out the API docs:

http://curl.haxx.se/libcurl/c/

> What is the correct way for access returned http headers ?
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

Specifically, the options CURLOPT_HEADERFUNCTION and CURLOPT_WRITEHEADER
provide a callback mechanism that return the headers, one line at a time.

You can search this list for more info and examples.

Good luck!
Received on 2007-05-23