当我向我的 twilio 电话号码发送短信时,我在日志中看到:
错误:11200 HTTP 检索失败 说明:尝试从https://xxx.xxx.com/extapi/twilio-php/twilio.xml.php检索内容返回了 HTTP 状态代码。
这是 twilio.xml.php 的内容:
<?php
header("content-type: application/xml");
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<Response>
<Sms>test</Sms>
</Response>
Run Code Online (Sandbox Code Playgroud)