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

2010-04-29 Thread Gary .
On 4/25/10, ioan...@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. Failed to connect to host is a pretty strange error if they're doing anything regarding cookies

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

2010-04-29 Thread ioan...@btinternet.com
On 2010/04/29 19:46, Gary . wrote: On 4/25/10, ioan...@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. Failed to connect to host is a pretty strange error if

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

2010-04-29 Thread Gary .
On 4/29/10, ioan...@btinternet.com wrote: On 2010/04/29 19:46, Gary . wrote: Failed to connect to host is a pretty strange error if they're doing anything regarding cookies and so on, IMO - I think I'd expect at least a connection to be established before they decide they don't like you. Have

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

2010-04-28 Thread ioan...@btinternet.com
I think the answer is: ISPs have a different range of addresses from host providers, so it is possible to block requests from host servers, so from scripts. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2010-04-28 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Wednesday, April 28, 2010 7:03 AM To: 'PHP' Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful connection I think the answer is: ISPs have a different range

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

2010-04-26 Thread Tommy Pham
-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

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

2010-04-26 Thread Tommy Pham
-Original Message- From: Tommy Pham [mailto:tommy...@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: ioan...@btinternet.com

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

2010-04-26 Thread ioan...@btinternet.com
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

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

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 12:05 +0900, ioan...@btinternet.com wrote: 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

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

2010-04-26 Thread ioan...@btinternet.com
On 2010/04/26 20:01, Ashley Sheridan wrote: How frequently do you request the page? Maybe playing about with that would resolve it? Is it possible to randomise the request frequency a bit? Thanks, Ash http://www.ashleysheridan.co.uk Just manually for testing, and it would be used for

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

2010-04-26 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Sunday, April 25, 2010 10:44 PM To: a...@ashleysheridan.co.uk; tommy...@gmail.com Tommy Pham Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful connection The answer I

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

2010-04-26 Thread Tommy Pham
-Original Message- From: ioan...@btinternet.com [mailto:ioan...@btinternet.com] Sent: Monday, April 26, 2010 7:10 AM To: Tommy Pham Subject: Re: [PHP] CURL cannot connect to URL - IP address - after successful connection On 2010/04/27 1:13, Tommy Pham wrote: -Original

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

2010-04-25 Thread ioan...@btinternet.com
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

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

2010-04-25 Thread Ashley Sheridan
On Sun, 2010-04-25 at 22:17 +0900, ioan...@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

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

2010-04-25 Thread ioan...@btinternet.com
This is all I see in the error log: SUEXEC error_log: [2010-04-25 16:45:42]: uid: (1116/myname) gid: (1118/myname) cmd: fcgiwrapper John -- PHP General Mailing List (http://www.php.net/) To unsubscribe,