Re: that 400 error again
Date: Fri, 07 Mar 2008 14:54:09 +0100
Lorenzo Ponce wrote:
> 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 ?
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.
Received on 2008-03-07