[JDEV] How to send URL
Dave Smith
dizzyd at dizzyd.com
Thu Mar 8 09:29:30 CST 2001
Hey Eric..
Actually, to send a URL to another person, you don't want to use
the IQ element. Instead, try this:
<message to='buddy at server'>
<body> Here's a link for ya!</body>
<x xmlns='jabber:x:oob'>
<url>http://www.jabber.org</url>
<desc>Home of the Coolest Project in the World</desc>
</x>
</message>
Hope that helps.
Diz
On Thu, Mar 08, 2001 at 05:37:23PM +0800, 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