> -----Original Message-----
> From: ioan...@btinternet.com [mailto:ioan...@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
> script curl_error is that it cannot connect to the host and return is
> The target URL is an ip address, not a named url, so maybe it has
> 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).


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to