HTTP Response Headers using iPlanet
| From: | Alexandre Ferreira Novello | Date: | Mon, 28 Jan 2002 20:12:43 +0000 |
| Subject: | HTTP Response Headers using iPlanet | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-78334@lists.php.net to get a copy of this message | ||
How can I retrieve the HTTP Response Headers using iPlanet or a
idependent SAPI function?
For example, supose there is a function called response_header()
If I write a script like this:
<?
header("TEST_HEADER: TEST_VALUE");
var_dump(response_header());
?>
I would like to have a result like this:
array(2) {
["X-Powered-By"]=>
string(12) "PHP/4.0.3pl1"
["TEST_HEADER"]=>
string(10) "TEST_VALUE"
}
Novello