cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Curl is identified as a robot somehow.

From: IG <911-000_at_mail.ru>
Date: Sun, 16 Jan 2005 19:01:58 +0300

trying to fetch the following url:
http://www.leader.ru/secure/who.html

with
...
$referer="http://www.leader.ru/";
$user_agent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1)";
$url="http://www.leader.ru/secure/who.html";
$cookies="c:/cookies/cookies.txt";

$header[] = "*.*";
$ch = curl_init();
curl_setopt($ch, CURLOPT_REFERER,$referer);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);

curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookies);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookies);
$result = curl_exec ($ch);
curl_close ($ch);
unset($ch);

...
it says thats the browser is unsupported and cant display the page.
whats the trick? user agent is clearly set.
thanks for any help.
Received on 2005-01-16