我这里有问题
<?php
include('smsconfig.php');
include("SMTPconfig.php");
include("dbconnect.php");
define("SITE_URL", "http://gf2fyu.blah.com");
$GLOBAL_REST_URL = "gf2fyu.domain.com/organization/";
$headers = array(
'X-MYDOMAIN-Secret:VuFlRQv40SUp0y1AXflMD0hWw8ZiiTu08f9ZXc0AYFc=',
'Content-Type: application/json; charset=UTF-8',
'Accept: application/json; charset=UTF-8',
);
//$json = array2json($ages);
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$GLOBAL_REST_URL);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
// curl_setopt($curl_handle, CURLOPT_POSTFIELDS,$json);
curl_setopt($curl_handle, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
$getit = json_decode($buffer, true);
$smskey = substr(number_format(time() * rand(),0,'',''),0,5);
print_r($getit);
?>
如果我在本地服务器和 mozila REST 上运行上面的代码,它对我来说工作正常
客户端,但每当我试图将此代码放在生产版本上时
此代码未命中其余服务器。
请告诉我这里有什么问题?
我在 MOzila 中使用相同的标头,它工作正常
我正在运行 Nginx