Jump to content

PHP Curl - couldn't connect to host


Giri J

Recommended Posts

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!

  • 7 months later...

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 )

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.