0

我无法找到用于此特定用例的正确 XEP:

发起者(例如 iOS 或 Android 设备)将文件上传到服务器并需要通知响应者(在这种情况下,这将是基于浏览器的客户端)使用 HTTP 从他刚刚上传到的位置下载文件。

我遇到的所有 XEP 都在谈论流或 IBB/SOCKS5。我确实发现了以下可能有用但自 2007 年以来没有更新的内容:

http://xmpp.org/extensions/inbox/jingle-httpft.html

我是否忽略了处于草稿或最终版本的 XEP 上的某些内容?

4

1 回答 1

0

要么使用XEP-0066: Out of Band Data ,要么只在XEP-0071: XHTML-IM a元素中编码链接。

首先:

<message from='stpeter@jabber.org/work'
         to='MaineBoy@jabber.org/home'>
  <body>Yeah, but do you have a license to Jabber?</body>
  <x xmlns='jabber:x:oob'>
    <url>http://www.jabber.org/images/psa-license.jpg</url>
  </x>
</message>

第二:

<message>
  <body>here is a file [http://www.jabber.org/images/psa-license.jpg]</body>
  <html xmlns='http://jabber.org/protocol/xhtml-im'>
    <body xmlns='http://www.w3.org/1999/xhtml'>
      <p>Here is a <a href='http://www.jabber.org/images/psa-license.jpg'>file</a></p>
    </body>
  </html>
</message>
于 2013-05-10T21:50:24.030 回答