[jdev] Server closes stream?

Tim Heinrich thecurse at gmx.com
Tue Feb 6 07:40:48 CST 2007


Hi,
        
I tried to write a little library to connect to a jabber server, so I
started implementing rfc3920. After sending the initial

C: <?xml version='1.0'?>
   <stream:stream
       to='example.com'
       xmlns='jabber:client'
       xmlns:stream='http://etherx.jabber.org/streams'
       version='1.0'>

the server responds with something like this:

S: <?xml version='1.0'?>
   <stream:stream
       from='example.com'
       id='someid'
       xmlns='jabber:client'
       xmlns:stream='http://etherx.jabber.org/streams'
       version='1.0'>
<stream:features>
<register xmlns='http://jabber.org/features/iq-register'/>
<auth xmlns='http://jabber.org/features/iq-auth'/>
  <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
  <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>NTLM</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>CRAM-MD5</mechanism>
  </mechanisms>
</stream:features>

Ok so far, but now it sends a 

</stream:stream>

That is not ok, is it? Refering to rfc3920 it should not send a
</stream:stream> I think. Even if I send the

<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>

now—as described in rfc3920—the server does not respond. What is wrong
here?

Bye,
Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3409 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20070206/33ff46e7/attachment-0002.bin>


More information about the JDev mailing list