RE: [PHP] CURL cannot connect to URL - IP address - after successful connection

From: Date: Mon, 26 Apr 2010 08:58:59 +0000
Subject: RE: [PHP] 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-304590@lists.php.net to get a copy of this message
> -----Original Message----- > From: ioannes@btinternet.com [mailto:ioannes@btinternet.com] > Sent: Sunday, April 25, 2010 6:18 AM > To: php-general@lists.php.net > Subject: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > 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 > Just to eliminate all possibilities, are you to open the same URL/URI in the web pages repeatedly? Also, what happens when you fake the user agent in the web browser? The target site may have some anti bot mechanism in place to reduce stress/load on the server(s). Regards, Tommy

« previous php.general (#304590) next »