Re: HTTP_Request2
| From: | David Jean Louis | Date: | Tue, 28 Oct 2008 21:07:22 +0000 |
| Subject: | Re: HTTP_Request2 | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50954@lists.php.net to get a copy of this message | ||
Alexey Borzov a écrit :
Their code suffers from the same problem as was described here, it is quite difficult to adapt it to using the cURL extension (or any other extension, for that matter). Note that they only provide socket-based backend.Again, why do we need "adapters" ? sorry but I just don't get it. It makes sense for a db package but here... Sockets are fine, shipped by default and available on any platform you can imagine.
Also there are several corner cases that were fixed in HTTP_Request due to its long history and huge user base (a good example would be handling of gzip-encoded responses) and are not fixed in current ZF.Yeah, that's why you can read: from: http://code.google.com/p/izi-sandbox/source/browse/trunk/HTTP_Response2/HTTP/Response2.php // FIXME use a real decodeGzip(), this is just a hack return gzinflate(substr($body, 10));
Of course I'm not against borrowing ideas and algorithms from there, just take their actual implementation with a pound of salt. :]cool, that's also what I tried to do. -- David