Re: CURL cannot connect to URL - IP address - after successful connection

From: Date: Fri, 30 Apr 2010 08:02:27 +0000
Subject: Re: CURL cannot connect to URL - IP address - after successful connection
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-304768@lists.php.net to get a copy of this message
On 25/04/10 14:17, ioannes@btinternet.com wrote:
I can return a target page - once, but then on refresh within a few hours the script curl_error is that it cannot connect to the host and return is empty. The target URL is an ip address, not a named url, so maybe it has something to do with DNS. I am on a shared server. Any ideas on why this happens? John
I've been watching this thread for a few days, and seen the various responses. It seems to me you should be asking the provider of the target page what the problem is! If you are consuming this service legitimately then they will tell you, and possibly provide a workaround. If not, then you probably shouldn't be doing what you are trying to do anyway - there a reason why they are blocking bots... Cheers Pete

« previous php.general (#304768) next »