Volcane wrote:

A whole transcript of a successful session using my library (twibber)

[EMAIL PROTECTED]:~/projects/twibber/examples$ python sendmessage1.py -u
fabio.forno  -p xxx --ssl -s talk.google.com -r gmail.com -j
[EMAIL PROTECTED] -v hello google talk

(explanations -u username, -p password, -s server, -r realm, -j target
jid for sending a message, all after -v, verbose: the message itself
I had to patch a bit in the authenication process, I hope this night I
can release a clean new version)
)

client.py, line 427 at _rawDataOut:
<stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' to='gmail.com'
version='1.0'>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<?xml version="1.0" encoding="UTF-8"?><stream:stream from="gmail.com"
id="E5E7AA42" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams";
xmlns="jabber:client"><stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' to='gmail.com'
version='1.0'>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<?xml version="1.0" encoding="UTF-8"?><stream:stream from="gmail.com"
id="E5E7AA44" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams";
xmlns="jabber:client"><stream:features><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'
mechanism='PLAIN'>ZmFiaW8uZm9ybm9AZ21haWwuY29tAGZhYmlvLmZvcm5vAG11cnVyb2E=</auth>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' to='gmail.com'
version='1.0'>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<?xml version="1.0" encoding="UTF-8"?><stream:stream from="gmail.com"
id="E5E7AA46" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams";
xmlns="jabber:client"><stream:features><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"/><session
xmlns="urn:ietf:params:xml:ns:xmpp-session"/></stream:features>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<iq type='set' id='H_0'><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>twibber</resource></bind></iq>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<iq id="H_0" type="result"><bind
xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>[EMAIL 
PROTECTED]/twibberE5E7AA47</jid></bind></iq>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<iq type='set' id='H_1'><session
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
--------------------------------------------------------------------------------
client.py, line 422 at _rawDataIn:
<iq type="result" id="H_1"/>
--------------------------------------------------------------------------------
client.py, line 427 at _rawDataOut:
<message to='[EMAIL PROTECTED]'><body>hello google talk</body></message>


-- 
Fabio Forno, PhD
Istituto Superiore Mario Boella
Jabber ID: xmpp:[EMAIL PROTECTED]
** Try Jabber http://www.jabber.org
_______________________________________________
jdev mailing list
jdev@jabber.org
http://mail.jabber.org/mailman/listinfo/jdev

Reply via email to