cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: COOKIE question

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 2 Sep 2004 10:02:16 +0200 (CEST)

On Thu, 2 Sep 2004, Dimitris Tripakis wrote:

> 1. As far as I can see, we can only "include header in the response" or not.
> What if I need both but prefer them separately ? Is there a way to get the
> header separately ? (I know its no big deal to do it, but the code will look
> smarter also).

libcurl provides such separations, but I doubt the PHP/CURL binding does.

> 2. Is there a way to get the COOKIE without parsing the header ? (e.g. with
> some CURLOPT_ option ? ) From what I can tell, CURLOPT_COOKIE etc are for
> sending cookies, not retrieving them.

Did you even try the manual?

http://curl.haxx.se/libcurl/php/examples/?ex=cookiejar.php

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-09-02