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

From: Date: Mon, 26 Apr 2010 09:14:33 +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-304591@lists.php.net to get a copy of this message
> -----Original Message----- > From: Tommy Pham [mailto:tommyhp2@gmail.com] > Sent: Monday, April 26, 2010 1:59 AM > To: 'php-general@lists.php.net' > Subject: RE: [PHP] CURL cannot connect to URL - IP address - after successful > connection > > > -----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 One more thing, check it with cookies enabled/disabled in the web browser too.

« previous php.general (#304591) next »