Discussion:
How to send URL
(too old to reply)
Eric
2001-03-08 09:37:23 UTC
Permalink
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 !!!
David Waite
2001-03-08 13:30:51 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Dave Smith
2001-03-08 15:29:30 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Eric
2001-03-08 09:37:23 UTC
Permalink
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 !!!
David Waite
2001-03-08 13:30:51 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Dave Smith
2001-03-08 15:29:30 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Eric
2001-03-08 09:37:23 UTC
Permalink
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 !!!
David Waite
2001-03-08 13:30:51 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Dave Smith
2001-03-08 15:29:30 UTC
Permalink
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
Post by Eric
Hi!
<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
<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?
<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
Continue reading on narkive:
Loading...