<div dir="ltr">Sorry, I Dont know why but gmail send my mail. and i didnt finish<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 .8ex;border-left:1px #ccc solid;border-right:1px #ccc solid;padding-left:1ex;padding-right:1ex">
<div dir="rtl"><div dir="ltr">i Hope i got to the write place.<br><br>i am a labview programer and because there is no libery for labview, I try to build my on.<br><br>The problem is that i try to connect to google by TLS and SASL.<br>
this what i do<br>I Send:<br><div style="margin-left:40px"><?xml version="1.0"?><br> <stream:stream to="<a href="http://gmail.com" target="_blank">gmail.com</a>"<br> version="1.0"<br>
xmlns="jabber:client"<br> xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>"><br></div>The SEVER send:<br><div style="margin-left:40px">
<stream:stream from="<a href="http://gmail.com" target="_blank">gmail.com</a>" id="95AC9FE47B969448" version="1.0" xmlns:stream="<a href="http://etherx.jabber.org/streams" target="_blank">http://etherx.jabber.org/streams</a>" 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><br>
</div><br>When i try to connect with SASL, I Send:<br><div style="margin-left:40px"><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><br></div>The SEVER send:<br><div style="margin-left:40px"><proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><br>
<br><font size="4">But<font>, after that the sever kick me. then i tried SASL</font></font><br></div></div><div dir="ltr">When i try to connect with TLS, I Send:<br><auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="X-GOOGLE-TOKEN">{Base64 Username A Password}</auth><br>
</div></div></blockquote><div>but all the time is return me "<failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><incorrect-encoding/></failure></stream:stream>"<br><br>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<br>
<br>I hoop u can help me, i read almost every site on the web on xmpp and i didnt got an answer<br><br>thanks, and sorry for my english<br></div></div></div>