[jdev] XML Gtalk handshake

Yoni Elentok elyoni at gmail.com
Thu Aug 23 08:26:00 UTC 2012

Sorry, I Dont know why but gmail send my mail. and i didnt finish

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">{Base64 Username A Password}</auth>
but all the time is return me "<failure

i try to search for what is the right encoding but every plase is say to
send <null> between the user the password. How can i send Null? How it's
look like

I hoop u can help me, i read almost every site on the web on xmpp and i
didnt got an answer

thanks, and sorry for my english
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20120823/6f067d5a/attachment.html>

More information about the JDev mailing list