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


Re: Problem with saving "no-named" cookies

From: Daniel Stenberg <>
Date: Mon, 3 Sep 2007 16:13:21 +0200 (CEST)

On Mon, 3 Sep 2007, Pawe? Hrycyk wrote:

> I found solution to my problem.
> First I have to read the invalid header i save this cookie:
> $pattern = 'Set-cookie: ([a-zA-Z0-9]*);';
> if(ereg($pattern, $curl->header, $r)) {
> $cookie=$r[1];

Well, that's rather a work-around and not a fix in my eyes. A proper fix most
likely involve fixing libcurl's cookie parser to accept this syntax.

  Commercial curl and libcurl Technical Support:
Received on 2007-09-03