本人的解决情况记录
框架php yii2
1,$header = ['Content-Type' => 'application/json'];//返回 Empty reply from server2, $header = ['Content-Type: application/json'];// 返回正常。。。。。。
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);