C++;XML-RPC调用 < >我没有看到任何文件通过输入某些字符串调用XML- RPC,并通过连接到XML API获得C++中的一些字符串的响应。这是服务器提供的文档。我不知道该怎么做 A client can interact

C++;XML-RPC调用 < >我没有看到任何文件通过输入某些字符串调用XML- RPC,并通过连接到XML API获得C++中的一些字符串的响应。这是服务器提供的文档。我不知道该怎么做 A client can interact,c++,pandorabots,C++,Pandorabots,C++;XML-RPC调用 < >我没有看到任何文件通过输入某些字符串调用XML- RPC,并通过连接到XML API获得C++中的一些字符串的响应。这是服务器提供的文档。我不知道该怎么做 A client can interact with a Pandorabot by POST'ing to: http://www.pandorabots.com/pandora/talk-xml The form variables the client need

C++;XML-RPC调用 < >我没有看到任何文件通过输入某些字符串调用XML- RPC,并通过连接到XML API获得C++中的一些字符串的响应。这是服务器提供的文档。我不知道该怎么做

    A client can interact with a Pandorabot by POST'ing to:

    http://www.pandorabots.com/pandora/talk-xml
    The form variables the client needs to POST are:

    botid - see H.1 above.
    input - what you want said to the bot.
    custid - an ID to track the conversation with a particular customer. This variable is optional. If you don't send a value Pandorabots will return a custid attribute value in the <result> element of the returned XML. Use this in subsequent POST's to continue a conversation.
    This will give a text/xml response. For example:

    <result status="0" botid="c49b63239e34d1d5" custid="d2228e2eee12d255">
      <input>hello</input>
      <that>Hi there!</that>
    </result>

    The <input> and <that> elements are named after the corresponding AIML elements for bot 
input and last response.
 If there is an error, status will be non-zero and there will be a human readable <message> element included describing the error. 

For example:
    <result status="1" custid="d2228e2eee12d255">
      <input>hello</input>
      <message>Missing botid</message>
    </result>
客户端可以通过发布到以下地址与Pandorabot交互:
http://www.pandorabots.com/pandora/talk-xml
客户端需要发布的表单变量包括:
botid-见上文H.1。
输入-你想对机器人说什么。
custid—跟踪与特定客户对话的ID。此变量是可选的。如果不发送值,Pandorabots将在返回的XML元素中返回custid属性值。在后续帖子中使用此选项继续对话。
这将给出一个text/xml响应。例如:
你好
你好!
和元素以bot对应的AIML元素命名
输入和最后的响应。
如果有错误,状态将为非零,并且将包含一个人类可读的元素来描述错误。
例如:
你好
缺少botid

> > P>在C++中通过HTTP进行通信的最简单方法是使用为此设计的库。例如,提供所有需要发送和接收您在该问题中显示的请求和响应的所有设备。

这看起来不像是我的实际协议。C++的CURL不提供任何文档,请您说明如何做到这一点。所有的LILCURL文档都可以在页面上找到。您将使用C接口(也可以在C++中使用)。使用那里记录的“简易接口”。我看不到如何设置字符串(对于像botid custid这样的变量)和请求响应