我使用此命令拨打电话。我在 amazon s3 中托管了 xml 并将其公开。电话说:“对不起,发生了应用程序错误。请帮助
curl -XPOST https://api.twilio.com/2010-04-01/Accounts/kjfwbkjfejbfgeirbgiregribg/Calls.json -d "Url=http://read-voice.xyz.s3-website-us-east-1.amazonaws.com/voice.xml" -d "To=%2B1234567812" -d "From=%2B1234567812" -u 'ssllsdnf wfwefklwefwefwef:wjfdbewfergergerg'
这是 XML
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="alice">Thanks for trying our documentation. Enjoy!</Say>
</Response>
这是调试器中的错误
<Html>
<Head>
<Title>405 Method Not Allowed</Title>
</Head>
<Body>
<H1>405 Method Not Allowed</H1>
<Ul>
<Li>Code: MethodNotAllowed</Li>
<Li>Message: The specified method is not allowed against this resource.</Li>
<Li>Method: POST</Li>
<Li>ResourceType: OBJECT</Li>
<Li>RequestId: xyxafsgjsk</Li>
<Li>HostId: xyzt8=</Li>
</Ul>
<Hr/>
</Body>