cvs: pear /HTTP_Request Request.php package2.xml

From: Date: Mon, 26 Feb 2007 19:16:18 +0000
Subject: cvs: pear /HTTP_Request Request.php package2.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-44887@lists.php.net to get a copy of this message
mj Mon Feb 26 19:16:18 2007 UTC Modified files: /pear/HTTP_Request package2.xml Request.php Log: * Improved API documentation (Bug #9984) * Removed unneeded parameter from getURL() (Bug #9586) # Alexey, I also updated package2.xml. Hope you don't mind. http://cvs.php.net/viewvc.cgi/pear/HTTP_Request/package2.xml?r1=1.1&r2=1.2&diff_format=u Index: pear/HTTP_Request/package2.xml diff -u pear/HTTP_Request/package2.xml:1.1 pear/HTTP_Request/package2.xml:1.2 --- pear/HTTP_Request/package2.xml:1.1 Wed Oct 25 16:23:31 2006 +++ pear/HTTP_Request/package2.xml Mon Feb 26 19:16:18 2007 @@ -22,10 +22,10 @@ <email>avb@php.net</email> <active>yes</active> </lead> - <date>2006-10-25</date> + <date>2007-03-xx</date> <version> - <release>1.4.0</release> - <api>1.4.0</api> + <release>1.4.1</release> + <api>1.4.1</api> </version> <stability> <release>stable</release> @@ -33,28 +33,8 @@ </stability> <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license> <notes> -* Added Keep-Alive support (request #4806), thanks to Justin Patrin for the - initial patch. Please note that &quot;Connection: close&quot; header is still added - by default, you need to explicitly add &quot;Connection: Keep-Alive&quot; header or - remove &quot;Connection&quot; header if using HTTP 1.1 -* A new disconnect() method was added which forces disconnection from the - server if Keep-Alive is used. Also two new events are sent to the Listeners: - &quot;connect&quot; and &quot;disconnect&quot; -* Added getUrl() method (request #6589) -* Added method to properly parse header of gzip-encoded data (see RFC 1952). - This takes care of situations when the server adds some additional data - to the header (bug #8245) or sends data that is not gzip-encoded when - &quot;Content-Encoding: gzip&quot; header is present (bug #8213) -* &quot;Proxy-Authorization&quot; header is now properly set by constructor - (bug #5913) -* Fixed doc comments mentioning addBody() method instead of proper setBody() - (bug #5969) -* Fixed erroneous removal of &quot;Content-Type&quot; header from request - (bug #7922) -* Bogus HTTP headers are now ignored (bug #8214) -* Path is set to &quot;/&quot; if an URL without path (http://www.example.com) - is given (bug #8662) -* Moved to package.xml version 2.0 +* Removed unintended parameter for getURL() (Bug #9586) +* Improved API documentation (Bug #9984) </notes> <contents> <dir name="/"> @@ -92,6 +72,43 @@ <changelog> <release> <version> + <release>1.4.0</release> + <api>1.4.0</api> + </version> + <stability> + <release>stable</release> + <api>stable</api> + </stability> + <date>2006-10-25</date> + <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD</license> + <notes> +* Added Keep-Alive support (request #4806), thanks to Justin Patrin for the + initial patch. Please note that &quot;Connection: close&quot; header is still added + by default, you need to explicitly add &quot;Connection: Keep-Alive&quot; header or + remove &quot;Connection&quot; header if using HTTP 1.1 +* A new disconnect() method was added which forces disconnection from the + server if Keep-Alive is used. Also two new events are sent to the Listeners: + &quot;connect&quot; and &quot;disconnect&quot; +* Added getUrl() method (request #6589) +* Added method to properly parse header of gzip-encoded data (see RFC 1952). + This takes care of situations when the server adds some additional data + to the header (bug #8245) or sends data that is not gzip-encoded when + &quot;Content-Encoding: gzip&quot; header is present (bug #8213) +* &quot;Proxy-Authorization&quot; header is now properly set by constructor + (bug #5913) +* Fixed doc comments mentioning addBody() method instead of proper setBody() + (bug #5969) +* Fixed erroneous removal of &quot;Content-Type&quot; header from request + (bug #7922) +* Bogus HTTP headers are now ignored (bug #8214) +* Path is set to &quot;/&quot; if an URL without path (http://www.example.com) + is given (bug #8662) +* Moved to package.xml version 2.0 + </notes> + </release> + + <release> + <version> <release>1.3.0</release> <api>1.3.0</api> </version> http://cvs.php.net/viewvc.cgi/pear/HTTP_Request/Request.php?r1=1.51&r2=1.52&diff_format=u Index: pear/HTTP_Request/Request.php diff -u pear/HTTP_Request/Request.php:1.51 pear/HTTP_Request/Request.php:1.52 --- pear/HTTP_Request/Request.php:1.51 Wed Oct 25 16:23:31 2006 +++ pear/HTTP_Request/Request.php Mon Feb 26 19:16:18 2007 @@ -32,7 +32,7 @@ // | Author: Richard Heyes <richard@phpguru.org> | // +-----------------------------------------------------------------------+ // -// $Id: Request.php,v 1.51 2006/10/25 16:23:31 avb Exp $ +// $Id: Request.php,v 1.52 2007/02/26 19:16:18 mj Exp $ // // HTTP_Request Class // @@ -58,6 +58,13 @@ define('HTTP_REQUEST_HTTP_VER_1_0', '1.0', true); define('HTTP_REQUEST_HTTP_VER_1_1', '1.1', true); +/** + * HTTP_Request main class + * + * @package HTTP_Request + * @author Richard Heyes <richard@phpguru.org> + * @version $Revision: 1.52 $ + */ class HTTP_Request { /** @@ -360,7 +367,7 @@ * @return string Current request URL * @access public */ - function getUrl($url) + function getUrl() { return empty($this->_url)? '': $this->_url->getUrl(); } @@ -1015,6 +1022,10 @@ /** * Response class to complement the Request class +* +* @author Richard Heyes <richard@phpguru.org> +* @package HTTP_Request +* @version $Revision: 1.52 $ */ class HTTP_Response {

« previous php.pear.cvs (#44887) next »