RE: [PHP] CURL cannot connect to URL - IP address - after successful connection
| From: | Tommy Pham | Date: | Mon, 26 Apr 2010 16:13:43 +0000 |
| Subject: | RE: [PHP] CURL cannot connect to URL - IP address - after successful connection | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-304617@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 10:44 PM
> To: ash@ashleysheridan.co.uk; tommyhp2@gmail.com >> Tommy Pham
> Subject: Re: [PHP] CURL cannot connect to URL - IP address - after
successful
> connection
>
> The answer I got from support desk on my shared server: 'You are trying to
> curl to a datapipe server, if it is rejecting the server name and port,
you will
> need to take that up with them.'
>
> John
I assume that you did full testing with the browser as I suggested? If
everything works, one other thing to keep in mind is that the target also
may implement reverse DNS lookup in their anti-bot. One good way to test
that is to remote in via SSH (if on Linux/Unix) to test with wget.
Otherwise, I'm pretty sure that target site have some anti-bot mechanisms in
place. Microseconds of analyzing valid 'user' requests is better than
processing 2-3 seconds and sending the response which will consume
bandwidth. What you could also try is setting different user-agents for
every request and use cookies in cURL should the target site have an
anti-bot mechanism.
Regards,
Tommy