i getting server response of 0 each time try , fetch response using standard curl functionality within laravel project. has nothing combination think when access way other url works fine... kinda lost... in controller have function below: $curl = "https://www.googleapis.com/language/translate/v2?key=my-key&source=en&target=nl&q=hello%20world"; echo $curl; $handle = curl_init($curl); curl_setopt($handle, curlopt_url, $curl); curl_setopt($handle, curlopt_returntransfer, true); $response = curl_exec($handle); $responsedecoded = json_decode($response, true); $responsecode = curl_getinfo($handle, curlinfo_http_code); if($responsecode != 200) { echo 'fetching translation failed! server response code:' . $responsecode; } else { echo 'source: ' . $text . '<br>'; echo $responsedecoded['data']; } curl_close($handle); the output 0 , error code 0 (zero) while when access https://www.googleapis.com/language/transla...