Thread: Headers problem
View Single Post

  #3 (permalink)  
Old 11-26-2005
Janwillem Borleffs
 
Posts: n/a
Default Re: Headers problem

Dominik wrote:
> If you know some way to do this, please help.
>


$agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)';
$url = 'http://www.google.nl/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $agent);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$ret = curl_exec($ch);


JW



Reply With Quote