文档概览

PHP(POST方式)

<?php
$ch = curl_init();
$timeout = 30;
$username = "用户名";
$password = "接口密码";
$code= "验证码";//验证码
$phone="号码";//手机号
$callid="唯一标示";//15位
$sendurl = "IP:端口/OutCallCode/SubmitCallCode.asp?username=".$username."&password=".$password."&phone=".$phone."&code=".$code."&callid=".$callid."";
curl_setopt($ch, CURLOPT_URL, $sendurl);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);  
$file_contents = curl_exec($ch);  
curl_close($ch);  
echo $file_contents;  
?> 
 
QQ在线咨询
服务热线
021-64360230
24小时电话
15900894283