[jdev] XML Gtalk handshake

Yoni Elentok elyoni at gmail.com
Thu Aug 23 08:16:29 UTC 2012


i Hope i got to the write place.

i am a labview programer and because there is no libery for labview, I try
to build my on.

The problem is that i try to connect to google by TLS and SASL.
this what i do
I Send:
<?xml version="1.0"?>
    <stream:stream    to="gmail.com"
            version="1.0"
            xmlns="jabber:client"
            xmlns:stream="http://etherx.jabber.org/streams">
The SEVER send:
<stream:stream from="gmail.com" id="95AC9FE47B969448" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:client"><stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>X-OAUTH2</mechanism></mechanisms></stream:features>

When i try to connect with SASL,  I Send:
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
The SEVER send:
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>

But, after that the sever kick me. then i tried SASL
When i try to connect with TLS,  I Send:
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"
mechanism="X-GOOGLE-TOKEN">Onlvc2hpLmhvbWUyMDA2OmUzMXEydzNlNHI=</auth>


I start to read "O’Reilly, XMMP:The Definitive Guide"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20120823/b84d2eab/attachment.html>


More information about the JDev mailing list