Re: [PATCH] Add HTTP Status Code Functions to PEAR::HTTP
| From: | Marshall Roch | Date: | Thu, 20 Nov 2003 11:49:33 +0000 |
| Subject: | Re: [PATCH] Add HTTP Status Code Functions to PEAR::HTTP | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23770@lists.php.net to get a copy of this message | ||
Davey wrote:
Dear All, Please find here[1] a patch to add the following methods to PEAR::HTTP HTTP::statusType - Type of statusCode (as defined in the RFC) HTTP::statusText - The Message for the error code (from RFC) HTTP::isInformational - Is an Informational code (1xx code) HTTP::isSuccessful - Is a Success code (2xx code) HTTP::isRedirect - Is a Redirect code (3xx code) HTTP::isClientError - Is a Client Error code (4xx code) HTTP::isServerError - Is a Server Error code (5xx code) HTTP::isError - Is a Client OR Server Error code (4xx or 5xx code)I don't have time to take a look at the code right now, but check out HTTP_Status, a package I proposed that got rejected as a standalone package and never got integrated into any of the other HTTP packages: http://www.exclupen.com/misc/pear/HTTP_Status/Status.phps -- Marshall Roch http://pear.php.net/user/mroch