php调用金蝶的Webapi时,使用create_postdata提示未定义,
在php,ini中已经开放了extension=php_curl.dll,请大虾指点迷路
<?php
$cloudURL = "http://xxx.ik3cloud.com/K3cloud/Kingdee.BOS.WebApi.ServicesStub.AuthService.ValidateUser.common.kdsvc";
//登陆参数
$data = array(
'xx',
'xx' ,
'xx' ,
'xx'
);
$cookie_jar = tempnam('./tmp' , 'CloudSession');
$post_content = create_postdata($data);
$result = invoke_login($cloudURL,$post_content,$cookie_jar);
header("Content-type:text/html;charset=bg2312");
echo '<pre>';
print_r('登陆请求数据:');
?>