Home » HTTP » HTTP_Header
OO interface to modify and handle HTTP headers and status codes.
This package is unmaintained.
Download latest release 1.2.1 (there might be newer Composer installable version)
License: BSD, revised
Description
This class provides methods to set/modify HTTP headers
and status codes including an HTTP caching facility.
It also provides methods for checking Status types.
Maintainers
- Wolfram Kriesing (cain) — lead, active
- Davey Shafik (davey) — lead, active
- Michael Wallner (mike) — lead, active
Dependencies
Required
Releases
- 1.2.1 (stable, 2010-10-15)
- 1.2.0 (stable, 2005-11-14)
Release notes
License: BSD, revised
* Fixed Bug #5830 - only variables can be passed by reference
* Changed license to BSD - 1.1.2 (stable, 2005-07-18)
- 1.1.2RC1 (beta, 2004-12-22)
- 1.1.1 (stable, 2004-11-10)
Release notes
License: PHP License
* POST requests should *NOT* be cached
- 1.1.0 (stable, 2004-08-05)
Release notes
License: PHP License
+ Support for Internet Explorer
- 1.0.2 (stable, 2004-08-05)
- 1.0.1 (stable, 2004-08-04)
Release notes
License: PHP License
* Don't append a question mark to redirection urls which have no query string
* Fixed Header_Cache::isOlderThan() and Header_Cache::isCached() (finally) - 1.0.0 (stable, 2004-07-21)
Release notes
License: PHP License
* Call parent constructor in HTTP_Header_Cache
* Fixed Bug in HTTP_Header_Cache::isCached()
* Fixed Bug #1908 (added optional parameter $session to redirect())
+ Added PHPUnit test cases - 1.0.0RC1 (beta, 2004-07-02)
Release notes
License: PHP License
* First Release Candidate for stable release.
- 0.3.0 (beta, 2004-06-12)
Release notes
License: PHP License
* refactored HTTP_Header_Cache
* fixed typos in HTTP_Header::dateToTimestamp() - 0.2.0 (beta, 2004-06-09)
Release notes
License: PHP License
* honor actual HTTP version
* added accessors to HTTP version
* check if headers were alread sent
* marked dateToTimestamp() as deprecated
* general code clean up - 0.1.6 (beta, 2003-12-28)
Release notes
License: PHP License
* Fixed Errors in sendStatusCode
* Fixed all HTTP_Header::isError (and similar) methods
* Fixed HTTP_Header::sendStatusCode - 0.1.5 (beta, 2003-12-09)
Release notes
License: PHP License
* fix in redirect(), when parameter was added, it was always added with ?para=value,
instead of checking if there was already a param
* added quite some methods by Davey Shafik
* changed HTTP_HEADER_STATUS_* content by Davey Shafik
* added getStatusType() and getStatusText() by Davey Shafik - 0.1.4 (beta, 2003-09-19)
Release notes
License: PHP License
* redirect sends session id by default when trans_sid=1, behaviour has changed!
- 0.1.3 (beta, 2003-03-31)
Release notes
License: PHP License
* fixed dateToTimestamp() to retrieve proper cache date
- 0.1.2 (beta, 2003-03-11)
Release notes
License: PHP License
* if redirect has no params given, redirect to PHP_SELF
* Cache::exitIfCached() returns false if isCached() is false - 0.1.1 (alpha, 2003-01-27)
Release notes
License: PHP License
- added redirect, which takes care of additional GET vars too
- added all HTTP1.1 code (thanks to Patrick O'Lone) - 0.1 (alpha, 2003-01-17)
Release notes
License: PHP License
- initial release in PEAR
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1335 | Closed | Bug | 2004-05-04 | Setting the Last-Modified header with an date fails | |
| #1336 | Closed | Bug | 2004-05-04 | dateToTimestamp() is ambigious | |
| #1582 | Closed | Bug | 2004-06-08 | Refactored HTTP_Header | |
| #1603 | Closed | Bug | 2004-06-10 | HTTP_Header does not send Last-Modified header | |
| #1908 | Closed | Bug | 2004-07-19 | Session added to redirect with $param | |
| #2063 | Closed | Bug | 2004-08-05 | error msg gmdate() | |
| #4338 | Closed | Bug | 2005-05-13 | Typo | |
| #5404 | Closed | Bug | 2005-09-14 | Headers cannot be unset | |
| #5409 | Bogus | Bug | 2005-09-15 | Headers are sent in lower-case | |
| #5830 | Closed | Bug | 2005-10-31 | Fatal error: Only variables can be passed by reference in /usr/local/share/php/ | |
| #5914 | Closed | Req | 2005-11-09 | Wish header names in "camel-syntax" | |
| #6615 | Bogus | Bug | 1.2.0 | 2006-01-29 | HTTP general-header "Pragma:" has no directive "cache" |
| #6616 | Bogus | Bug | 1.2.0 | 2006-01-29 | Wrong implementation of expiration model of HTTP-Cache |
| #20134 | Closed | Bug | 1.2.1 | 2013-11-27 | Enabling 'prettify' option leads to 'Call to undefined function uctitle()' |