| HTTP::Date | HTTP::negotiateLanguage |
| HTTP | |
| PEAR Manual | |
require_once 'HTTP.php';
|
array HTTP::head (
string $url
)
Sends a "HEAD" HTTP command to a server and returns the headers in an associative array.
HEAD request to example.com
|
string $url - a valid absolute URL
array - an array containing the header lines or a PEAR_Error.
Example output:
|
| Error code | Error message | Reason | Solution |
| NULL | "HTTP::head Error $errstr ($erno )" | Connection to server failed | Check connectivity of your host and the given URL in $url |
This function can be called statically.
| HTTP::Date | HTTP::negotiateLanguage |
| HTTP | |
| PEAR Manual | |