array HTTP::head (string $url)
array HTTP::head
Sends a "HEAD" HTTP command to a server and returns the headers in an associative array.
Example 26-1. HEAD request to example.com
string $url - a valid absolute URL
array - an array containing the header lines or a PEAR_Error.
Example output:
Table 26-1. Possible PEAR_Error values
This function can be called statically.