如何为mod_xml_curl返回任何内容?

时间:2011-12-09 13:22:57

标签: xml curl freeswitch

这里的手册http://wiki.freeswitch.org/wiki/Mod_xml_curl说,如果要让Freeswitch根据静态XML处理它的请求,那么curl服务应该“什么都不返回”。

究竟什么“什么都不回”意味着什么?

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

还有其他什么或上面的某种组合?

由于

1 个答案:

答案 0 :(得分:0)

我相信答案是'以上都不是';你应该回来

<?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>
相关问题