I'm trying to send a CURL request from one script to another. They're on different domains and hosting accounts, but both hosting accounts are under the same host. The problem is that the CURL request seems to time out when curl_exec is called. If I use the same code locally and access the other half of the script online then it works fine. The problem only appears when both parts of the script are on the two different hosting accounts. If they're on the same host it works and if I try to CURL a page I definitely know works (www.google.co.uk for instance) then it returns fine so I think it might be a server issue.
Could someone please advise? Thanks in advance.
Odd CURL problem
Moderator: General Moderators