Subject: A 'to' attribute is required on stream headers
Hi,
I'm trying to connect to a Prosody XMPP server (most recent version). The connection fails and Prosody complains that there's a missing attribute on the request header. RFC3920 says:
"
o to -- The 'to' attribute SHOULD be used only in the XML stream
header from the initiating entity to the receiving entity, and
MUST be set to a hostname serviced by the receiving entity"
Am I missing something? I set the hostname, user and password before calling xmppClientInstanceName.Open().
2013-08-02 19:09:17.283 app[3951:c07] [Sent] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" >
2013-08-02 19:09:17.340 app[3951:c07] [Received] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" >
2013-08-02 19:09:17.344 app[3951:c07] [Received] <stream:error xmlns:stream="http://etherx.jabber.org/streams">
<improper-addressing xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
<text xmlns="urn:ietf:params:xml:ns:xmpp-streams">A 'to' attribute is required on stream headers</text>
</stream:error>
2013-08-02 19:09:17.345 app[3951:c07] [Sent] </stream:stream>
2013-08-02 19:09:17.346 app[3951:c07] [Received] </stream:stream>
I'm trying to connect to a Prosody XMPP server (most recent version). The connection fails and Prosody complains that there's a missing attribute on the request header. RFC3920 says:
"
o to -- The 'to' attribute SHOULD be used only in the XML stream
header from the initiating entity to the receiving entity, and
MUST be set to a hostname serviced by the receiving entity"
Am I missing something? I set the hostname, user and password before calling xmppClientInstanceName.Open().
2013-08-02 19:09:17.283 app[3951:c07] [Sent] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" version="1.0" >
2013-08-02 19:09:17.340 app[3951:c07] [Received] <stream:stream xmlns:stream="http://etherx.jabber.org/streams" version="1.0" xmlns="jabber:client" >
2013-08-02 19:09:17.344 app[3951:c07] [Received] <stream:error xmlns:stream="http://etherx.jabber.org/streams">
<improper-addressing xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
<text xmlns="urn:ietf:params:xml:ns:xmpp-streams">A 'to' attribute is required on stream headers</text>
</stream:error>
2013-08-02 19:09:17.345 app[3951:c07] [Sent] </stream:stream>
2013-08-02 19:09:17.346 app[3951:c07] [Received] </stream:stream>