curl-library
Re: How to extract a header value from a POST response
From: Ben Noordhuis <info_at_bnoordhuis.nl>
Date: Fri, 18 Mar 2011 13:43:16 +0100
Date: Fri, 18 Mar 2011 13:43:16 +0100
2011/3/18 Javier Gálvez Guerrero <javier.galvez.guerrero_at_gmail.com>:
> However, I do not know how to extract response headers. Should I set any
> option to the easy handler? I have read the tutorial but I do not get any
> answer to such issue. Any help would be really appreciated.
Response headers or response body? You can get the headers with the
CURLOPT_HEADERFUNCTION callback, the response body with
CURLOPT_WRITEFUNCTION.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-18