cURL / Mailing Lists / curl-users / Single Mail


Re: that 400 error again

From: Lorenzo Ponce <>
Date: Sat, 8 Mar 2008 01:19:57 -0800 (PST)

Ok, what im trying to do, is about running this script in order to search in a list of 30 websites, 1 by 1, and to write a bit in the database indicating that the website contains the desired string, in this case, the string is 12345... some other non working webpages... y=11*12345*&N=1323038&Ntx=mode%2bmatchall&Ns=P_SField&Orig inalKeyword=12345&Ntk=Mouser_Wildcards partNoKeywordValue=12345&searchAll=1&stringPos=2&yourCat=0 Thanks in advance! ----- Mensaje original ---- De: Linus Nielsen Feltzing <> Para: the curl tool <> Enviado: viernes, 7 de marzo, 2008 10:54:09 Asunto: Re: that 400 error again Lorenzo Ponce wrote: > One of those 400 websites replying... > $addrs=""; > > $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 ? I ran exactly this PHP code on my machine and I did not receive a 400 error. Please explain a little more what you are trying to do. Linus ____________________________________________________________________________________ ¡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-08