Hi,

Am 07.02.2009 um 17:51 schrieb imoracle:

However even now I don't see the jabber server sending any
<stream:feature/> attribute when I send in the initial session stream.

:(

That's a little bit strange, I've never seen this behaviour before. Does your server send stream headers for raw socket connects?

Also I tried sending empty <body/> stanza's like this:

Code:
--------------------

 <body xmlns="http://jabber.org/protocol/httpbind";> </body>


Empty body stanzas need to have a 'sid' attribute (the one you got from the server as the response to your first request) and a 'rid' attribute. In your example it would have to be:

<body xmlns="http://jabber.org/protocol/httpbind"; sid='a8ff1833c6637ee6192b5312d329e5b30096805c' rid='2' />

Please note: You shouldn't start with a rid of 1 for security reasons (see the XEP for a detailled explanation why).

Cheers, Steve

Reply via email to