cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: that 400 error again

From: Lorenzo Ponce <lekronne_at_yahoo.com>
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... http://search.digikey.com/scripts/DkSearch/dksus.dll?lang=en&site=US&keywords=C4D3N4&x=0&y=0 http://www.honourforce.com/search.php?radiobutton=part_no&keyword=12345&imageField.x=37&imageField. y=11 http://www.mouser.com/Search/Refine.aspx?Ntt=*12345*&N=1323038&Ntx=mode%2bmatchall&Ns=P_SField&Orig inalKeyword=12345&Ntk=Mouser_Wildcards http://www.eescodirect.com/direct/Search/SearchResults.aspx?advSearch=1&searchFlag=2&partNoKeyword=& partNoKeywordValue=12345&searchAll=1&stringPos=2&yourCat=0 Thanks in advance! ----- Mensaje original ---- De: Linus Nielsen Feltzing <linus@haxx.se> Para: the curl tool <curl-users@cool.haxx.se> 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="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 ? 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!: http://correo.espanol.yahoo.com/
Received on 2008-03-08

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET