curl-library
Re: Fetching the cookie from the HTTP response headers
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 14 Sep 2011 19:56:41 +0200 (CEST)
Date: Wed, 14 Sep 2011 19:56:41 +0200 (CEST)
On Wed, 14 Sep 2011, steffin.james_at_wipro.com wrote:
> I would like to know what I can do for extracting only the cookie part from
> the HTTP response headers..
1. Use the CURLOPT_HEADERFUNCTION callback and filter out only the cookie
headers.
2. Use curl_easy_getinfo's CURLINFO_COOKIELIST and extract all cookies
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-09-14