我在 php 中使用 cURL 通过 SMSGlobals HTTP API 提交,并在成功发送时对此做出响应。
好的:0;已发送排队消息 ID:941596d028699601 SMSGlobalMsgID:6764842339385521
我的卷曲代码
//open CURL connection
$ch = curl_init();
//set url, variables and post
curl_setopt($ch,CURLOPT_URL, $httpsend);
//execute post
$result = curl_exec($ch);
//close connection
curl_close($ch);
我的问题是我需要提取初始 OK(如果有错误,则为 ERROR)。连同消息 ID 和 SMSGlobalMsgID 一起放入变量中,以便我可以使用它们进行确认。我似乎无法让它工作。