PHP Curl not executing Error 524 Timeout -


curl working fine @ server when trying run php script having curl_exec, not able run script. processing , returns 524 timeout error. have tried simplest curl code still same problem. when checked on local machine working fine. plz me can do. tried

<?php   $ch = curl_init(); curl_setopt($ch, curlopt_url, "suhailakhtar.xyz"); curl_setopt($ch, curlopt_returntransfer, 1); $fp = fopen('curlerror.log','a'); curl_setopt($ch, curlopt_verbose, true); curl_setopt($ch, curlopt_stderr, $fp); $result = curl_exec($ch); if (curl_errno($ch)) {     echo 'error:' . curl_error($ch); } else {     echo($result); } curl_close ($ch);  ?> 

on simple curl command , got error in file

* rebuilt url to: suhailakhtar.xyz/ * hostname not found in dns cache * trying 31.170.164.150... * connect 31.170.164.150 port 80 failed: connection timed out * failed connect suhailakhtar.xyz port 80: connection timed out * closing connection 0 

and other url on port 443

(posted on behalf of op).

the problem server. port 80 blocked on server hosting provider. contacted them , know , requested make active. working fine before.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -