cURL / Mailing Lists / curl-users / Single Mail


that 400 error again

From: Lorenzo Ponce <>
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...

$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);

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!:
Received on 2008-03-07