终于在openfire服务器上认证成功了,看到服务器上亮起来的小绿灯,虽然只是一小步成功,可是还是让我狠狠地小小得意了一把。
看了看才知道就为了去服务器登录,居然和服务器做了无数次交互(有点夸张)。
不信?看看我记录的日志:
[2011-02-19 19:29:01] level: 0;area:8; This is gloox 0.9.9.12, connecting...
[2011-02-19 19:29:01] level: 0;area:32; connecting to xyt (192.168.1.200:5222)
[2011-02-19 19:29:01 C->S] level:0; <?xml version='1.0' ?><stream:stream to='xyt' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' version='1.0'>
[2011-02-19 19:29:01 S->C] level:0; <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='xyt' id='36fe6b4a' xml:lang='en' version='1.0'/>
[2011-02-19 19:29:01 S->C] level:0; <stream:features><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism>CRAM-MD5</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>DIGEST-MD5</mechanism></mechanisms><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><auth xmlns='http://jabber.org/features/iq-auth'/><register xmlns='http://jabber.org/features/iq-register'/></stream:features>
[2011-02-19 19:29:01 C->S] level:0; <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='DIGEST-MD5'/>
[2011-02-19 19:29:02 S->C] level:0; <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09Inh5dCIsbm9uY2U9IlZieFNOdkNmTThIUi8ybUlFUGN5UjB4WkZNQW9uYm10RGpEcWtzVm4iLHFvcD0iYXV0aCIsY2hhcnNldD0idXRmLTgiLGFsZ29yaXRobT0ibWQ1LXNlc3Mi</challenge>
[2011-02-19 19:29:02] level: 0;area:4; processing SASL challenge
[2011-02-19 19:29:02 C->S] level:0; <response xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>dXNlcm5hbWU9ImhpdHdkIixyZWFsbT0ieHl0Iixub25jZT0iVmJ4U052Q2ZNOEhSLzJtSUVQY3lSMHhaRk1Bb25ibXREakRxa3NWbiIsY25vbmNlPSIwMDAwMDAyOTAwMDA0ODIzMDAwMDE4YmUwMDAwNjc4NCIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC94eXQiLHJlc3BvbnNlPTU2Mzg2ZjRmMzQwZjMyZWNkNjI3ZmI4ZGExMTRhODM0LGNoYXJzZXQ9dXRmLTg=</response>
[2011-02-19 19:29:02 S->C] level:0; <success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD0zYmYxZmFiMjE5NGI2ZWY4NzYyODQxMjFlODQyNjY0Yw==</success>
[2011-02-19 19:29:02] level: 0;area:4; SASL authentication successful
[2011-02-19 19:29:02 C->S] level:0; <?xml version='1.0' ?><stream:stream to='xyt' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' xml:lang='en' version='1.0'>
[2011-02-19 19:29:03 S->C] level:0; <stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='xyt' id='36fe6b4a' xml:lang='en' version='1.0'/>
[2011-02-19 19:29:03 S->C] level:0; <stream:features><compression xmlns='http://jabber.org/features/compress'><method>zlib</method></compression><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>
[2011-02-19 19:29:03 C->S] level:0; <iq type='set' id='bind'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><resource>gloox</resource></bind></iq>
[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='bind' to='xyt/36fe6b4a'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>hitwd@xyt/gloox</jid></bind></iq>
[2011-02-19 19:29:03 C->S] level:0; <iq type='set' id='session'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='session' to='hitwd@xyt/gloox'><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></iq>
[2011-02-19 19:29:03 C->S] level:0; <iq id='uid1' type='get'><query xmlns='jabber:iq:private'><roster xmlns='roster:delimiter'/></query></iq>
[2011-02-19 19:29:03 C->S] level:0; <iq type='get' id='uid2'><query xmlns='jabber:iq:roster'/></iq>
[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='uid1' to='hitwd@xyt/gloox'><query xmlns='jabber:iq:private'><roster xmlns='roster:delimiter'/></query></iq>
[2011-02-19 19:29:03 S->C] level:0; <iq type='result' id='uid2' to='hitwd@xyt/gloox'><query xmlns='jabber:iq:roster'><item jid='wyy@xyt' name='wyy' subscription='both'><group>我的联系人</group></item></query></iq>
[2011-02-19 19:29:03 C->S] level:0; <presence><priority>0</priority></presence>