Giri J Posted March 4, 2009 Share Posted March 4, 2009 Hi, I'm trying curl. I was successful when I worked it on my laptop. But when I bought the files to office and tried to run the php it gives me a error "couldn't connect to host " What could be the reason and Is there any solution. i'm using wamp 2.0 Thanks in advance Giri. Quote Link to comment Share on other sites More sharing options...
Yesideez Posted March 4, 2009 Share Posted March 4, 2009 The key here could be the word "office" If you're running the script on the company server then it could be a firewall issue. If you're running this remotely (ie. off external web space) then check connection details like username etc. Other than that, I've no idea what could be up not having used cURL before! Quote Link to comment Share on other sites More sharing options...
iim.vxk Posted October 6, 2009 Share Posted October 6, 2009 curl couldn't connect to host - unless it is localhost ??? if U try aLL ( copying ssleay32.dll, libeay32.dll, uncommenting php.ini, and tah msvcrt.dll ) and that freakin CURL don't work on ur Windows Xp installation, ( only CURL works on requests to localhost but not external ) u probably are miissing something basic :: curl_setopt($curl, CURLOPT_PROXY,"localhost:80"); ( exists other way to set it ) THIS finally WORKS FOR ME, now i believe in the web appz again... ( this chunky thing takes several days of my development ) pD :: i hope i help you ( as other helped me on the past ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.