HTTP::Date (Previous) (Next) HTTP::negotiateLanguage

View this page in Last updated: Sun, 28 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP::head

HTTP::head -- envoie une commande "HEAD"

Description

Envoie une commande http << HEAD >> à un serveur et retourne les en-têtes dans un tableau associatif.

Paramètres

  • string $url - une URL absolue valide

Valeur retournée

array - un tableau contenant les lignes d'en-tête ou un PEAR_Error.

Exemple d'affichage :


<?php
Array
(
    [response_code] => 200
    [response] => HTTP/1.1 200 OK
    [Date] => Tue25 Nov 2003 22:08:57 GMT
    [Server] => Apache/1.3.27 (Unix)  (Red-Hat/Linux)
    [Last-Modified] => Wed08 Jan 2003 23:11:55 GMT
    [ETag] => "3f80f-1b6-3e1cb03b"
    [Accept-Ranges] => bytes
    [Content-Length] => 438
    [Connection] => close
    [Content-Type] => text/html
)
?>

Note

Cette fonction peut être appelée de façon statique.

HTTP::Date (Previous) (Next) HTTP::negotiateLanguage

Download Documentation Last updated: Sun, 28 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.