如何为 mod_xml_curl 不返回任何内容?

发布于 2024-12-20 12:39:14 字数 359 浏览 4 评论 0原文

这里的手册 http://wiki.freeswitch.org/wiki/Mod_xml_curl 说,curl 服务应该如果希望 Freeswitch 基于静态 XML 处理其请求,则“不返回任何内容”。

“不返回任何内容”到底是什么意思?

0) 不响应客户端请求(超时) 1)返回HTTP 404错误? 2)返回HTTP 204错误(无内容)? 3)返回内容为零的HTTP 200? 4) 返回带有任何空格但没有 XML 标记的 HTTP 200?

其他的还是以上的某种组合?

谢谢

Manual here http://wiki.freeswitch.org/wiki/Mod_xml_curl says, that curl service should "return nothing" if it wants Freeswitch to process it's request based on static XMLs.

What exactly "return nothing" means?

0) Do not respond on client request (timeout)
1) Return HTTP 404 error?
2) Return HTTP 204 error (No Content)?
3) Return HTTP 200 with zero content?
4) Return HTTP 200 with any whitespaces but no XML tags?

Something else or some combination of the above?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浅紫色的梦幻 2024-12-27 12:39:14

我相信答案是“以上都不是”; 为了完整性,如果您希望处理

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
</document>

结束(即不再搜索进一步的绑定),则正确的响应是

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
    <section name="result">
        <result status="not found" />
    </section>
</document>

I believe the answer is 'none of the above'; you should return

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
</document>

For completeness, if you want processing to end (i.e. no further bindings to be searched), the correct response is

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
    <section name="result">
        <result status="not found" />
    </section>
</document>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文