Imitation d'un navigateur via CURL en PHP
La commande suivante force
CURL à imiter un navigateur,
en envoyant l'en-tête User-Agent :
<?php
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');
?>
Lors de l'accès à un site web, effectuez l'imitation d'un navigateur.