issues with accessing URL with cURL

abbrikoss

New Member
I have this web service which returns a JSON:\[code\] http://54.246.99.134:8080/services-app/services/Users/GetConfigForMetroAndLang?metroAreaId=1&langId=39\[/code\]When I access it using my browser, I get my JSON and all is working OK.When I try to grab it with CURL or file_get_contents the page just keeps loading until :failed to open stream: Connection timed outOther URLS are working great when I try to get them from the server (any other address).** edit **Thanks for the commentsMy code is very straight forward :)\[code\]$curl = curl_init('http://54.246.99.134:8080/services-app/services/Users/GetConfigForMetroAndLang?metroAreaId=1&langId=39'); curl_setopt($curl, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0'); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($curl); print_r($result) ; \[/code\]I now understand it works from a local host of one of my team mates...so it is probably a server / firewall issue? any direction maybe?** /edit **Would really appreciate any idea.Thanks!
 
Back
Top