Forum und email

http_match_etag

(PECL pecl_http:0.1.0-1.5.5)

http_match_etag — Cherche un ETag particulier

Description

bool http_match_etag ( string $etag [, bool $for_range = FALSE ] )

Cherche l'ETag fourni dans l'en-tête HTTP If-Match ou If-None-Match du client.

Liste de paramètres

etag

l'ETag à chercher

for_range

si défini à TRUE, l'en-tête habituellement utilisé pour valider l'intervalle HTTP sera analysé

Valeurs de retour

Retourne TRUE si l'ETag correspond ou l'en-ête contient une astérisque ("*"), FALSE sinon.