[JDEV] How to send URL
David Waite
dwaite at jabber.com
Thu Mar 8 07:30:51 CST 2001
Howdy Eric.
The problem is most probably that IQ packets have to be directed at a
particular session, meaning you need to specify the resource of the recipient
as well.
e.g.
<iq type='set' id='sendurl' to='comm at dev.5390.com/comm1'> ........
-David Waite
Eric wrote:
> Hi!
>
> I wanna send url to someone on my contact list with the following xml:
> <iq type="set" id="sendurl" to="comm at dev.5390.com" >
> <query xmlns="jabber:iq:oob">
> <url>http://www.jabber.org</url>
> <desc>jabber site</desc>
> </query>
> </iq>
>
> but jabber server responded with
> RECV:
> <iq type='error' id='sendurl' to='eric at dev.5390.com/InstantMessage'
> from='comm at dev.5390.com'>
> <query xmlns='jabber:iq:oob'>
> <url>http://www.jabber.org</url>
> <desc>jabber site</desc>
> </query>
> <error code='503'>Service Unavailable</error>
> </iq>
>
> Do I need to config the jabber server, say jabber.xml, or install any
> module?
> Should I use <message> instead of <query> like:
> <message from="comm at dev.5390.com" to="eric at dev.5390.com/InstantMessage">
> <body>URL Attached.</body>
> <x xmlns="jabber:x:oob">
> <url>http://denmark.com/act4/letter-1.html</url>
> <desc>There's a letter for you sir</desc>
> </x>
> </message>
>
> thanks !!!
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list