remote-stream-error includes full <stream:error/> element (not just its content) and optional stanzas
Note: Many existing XMPP-specific implementations of BOSH clients and connection managers do not specify the namespace of <message/>, <presence/>, or <iq/> elements, since that allows them to forward stanzas without modification (the XMPP <stream:stream/> wrapper element used with TCP typically sets the default namespace to 'jabber:client'). They instead simply assume that the full content of the 'jabber:client' namespace is a subset of the 'http://jabber.org/protocol/httpbind' namespace.
Note: Inclusion of TLS negotiation elements is allowed but is NOT RECOMMENDED. The definition of how TLS might be implemented over BOSH is currently beyond the scope of this document.
@@ -65,8 +71,7 @@ Content-Length: 104 xml:lang='en' xmpp:version='1.0' xmlns='http://jabber.org/protocol/httpbind' - xmlns:xmpp='urn:xmpp:xbosh' - xmlns:stream='http://etherx.jabber.org/streams'/>]]> + xmlns:xmpp='urn:xmpp:xbosh'/>]]>Note: Unlike the protocol defined in &xep0025;, an opening <stream:stream> tag is not sent to the connection manager (since BOSH <body/> elements MUST not contain partial XML elements). Any XML streams between the connection manager and an XMPP server are the responsibility of the connection manager (and beyond the scope of this document).
The content of the <body/> element is a copy of the content of the <stream:error/> element received from the XMPP server:
+The content of the <body/> element is zero or more stanzas followed by a copy of the <stream:error/> element (qualified by the 'http://etherx.jabber.org/streams' namespace) received from the XMPP server: