> SENT: <iq type="get" to="jabber.org" id="0123456789">
>         <query xmlns="jabber:iq:auth">
>           <username>myusername</username>
>         </query>
>       </iq>
> RECV: <iq type='result' id='0123456789'>
>         <query xmlns='jabber:iq:auth'>
>           <username>myusername</username>
>           <password/>
>           <digest/>
>           <sequence>0</sequence>
>           <token>A1B2C3D4</token>
>           <resource/>
>         </query>
>       </iq>
> SENT: <iq type="get" to="jabber.org" id="0123456789">
>         <query xmlns="jabber:iq:auth">
>           <username>myusername</username>
>           <password>mypassword</password>
>         </query>
>       </iq>
> RECV: <iq type='result' id='0123456789'>
>         <query xmlns='jabber:iq:auth'>
>           <username>myusername</username>
>           <username>mypassword</username>
>           <password/>
>           <digest/>
>           <sequence>0</sequence>
>           <token>A1B2C3D4</token>
>           <resource/>
>         </query>
>       </iq>

Here's your problem. The second IQ should be a set, not a get. You're
not authenticated, so you're not yet allowed to send anything, including
presence.

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: [EMAIL PROTECTED]                Web: http://cataclysm.cx/

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to