Re: HTTP_Request2 heads up: cookie jar and exception hierarchy
| From: | Christian Weiske | Date: | Mon, 21 Feb 2011 14:26:57 +0000 |
| Subject: | Re: HTTP_Request2 heads up: cookie jar and exception hierarchy | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54103@lists.php.net to get a copy of this message | ||
Hi Alexey,
> I've just committed a cookie jar implementation to SVN, this is a
> significantly updated version of HTTP_Client_CookieManager with
> Public Suffix List [1] support added. Please test this if you are
> interested in the functionality.
Great news! I tried it and it does what it says. I only wished there
was an easier way to create+get the jar. Currently I do:
$req->setCookieJar(true);
$cookiejar = $req->getCookieJar();
since setCookieJar returns the request object. But that's a minor
annoyance :) I could of course do
$req->setCookieJar($cookiejar = new HTTP_Request2_CookieJar());
...
> Note that Public Suffix List itself is released under either of MPL
> 1.1/GPL 2.0/LGPL 2.1 unlike HTTP_Request2 which is under BSD. Thus I
> keep the possibility of *not* including and enabling it. I think it
> is sufficient from licensing POW?
I'd like to see it included. There should not be a problem:
http://stackoverflow.com/questions/104968/can-i-use-lgpl-library-in-bsd-x11-licensed-project
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-