我试图在地址“smssheep.com”上远程发送短信,我设置了所有 POST FIELDS 和所有并发布,但它不会工作......
代码:
$settings=array();
$settings["name"]="form1"; //name of form
$settings["no"]="0038268000000"; //mobile number
$settings["msg"]="TEST TEST MESAGE"; //message to send
$settings["submit"]="saveForm";
$settings["x_form_secret"]="**********";
$settings["idstamp"]="***************";
$url="http://smssheep.com/sendsms.php";
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $settings);
curl_exec($ch);