Пример 28-1. HEAD request to example.com
|
array - an array containing the header lines or a PEAR_Error.
Example output:
Array
(
[response_code] => 200
[response] => HTTP/1.1 200 OK
[Date] => Tue, 25 Nov 2003 22:08:57 GMT
[Server] => Apache/1.3.27 (Unix) (Red-Hat/Linux)
[Last-Modified] => Wed, 08 Jan 2003 23:11:55 GMT
[ETag] => "3f80f-1b6-3e1cb03b"
[Accept-Ranges] => bytes
[Content-Length] => 438
[Connection] => close
[Content-Type] => text/html
) |
Таблица 28-1. Возможные значения PEAR_Error
| 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 |
| Пред. | Начало | След. |
| HTTP::Date | Уровень выше | HTTP::negotiateLanguage |
HIVE: All information for read only. Please respect copyright! |