$url="http://test.com:8001/service/RiskFormService/MO/view";
$post_data= array('headMsg'=>array("version"=> '0.1'),
"customerCode"=> 'test001',
"projectCode"=>'Test',
"moCode"=> $moCode);
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
// post数据
curl_setopt($ch, CURLOPT_POST,1);
// // post的变量
@curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$output=curl_exec($ch);
curl_close($ch);
$content=$output;
print_r($content);
网友评论