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

curl-and-php

Re: Problem with saving "no-named" cookies

From: Daniel Stenberg <daniel_at_haxx.se>
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: http://haxx.se/curl.html
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-09-03