[JDEV] 406 presence error

Robert Norris rob at cataclysm.cx
Sun Aug 3 23:16:01 CDT 2003


> 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: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20030804/2375d00a/attachment-0002.pgp>


More information about the JDev mailing list