cURL / Mailing Lists / curl-users / Single Mail

curl-users

that 400 error again

From: Lorenzo Ponce <lekronne_at_yahoo.com>
Date: Fri, 7 Mar 2008 07:39:21 -0600 (CST)

Hi there, i'm trying to get some results from various websites (automated searches), but, theres a few websites that gives me a 400 server error...

this is my code:

One of those 400 websites replying...
$addrs="http://www.alliedelec.com/Search/SearchResults.asp?N=0&page=no_results&Ntt=12345&sid=47BCBF0041617F&i=";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $addrs);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$res=curl_exec($ch);
 curl_close($ch);

What can I do in order to be able to read that page into the $res variable ?

Tnx in advance...

       
---------------------------------

ˇCapacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
http://correo.espanol.yahoo.com/
Received on 2008-03-07