Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, April 18, 2024

File: [Platon] / sendxmpp / examples / sendxmpp-raw-messages (download)

Revision 1.2, Sun Oct 28 14:37:23 2012 UTC (11 years, 5 months ago) by rajo


Changes since 1.1: +1 -1 lines

Changed homepage to http://sendxmpp.hostname.sk and CVS migrated to Git: https://github.com/lhost/sendxmpp

#
# RAW XMPP messages, which can be used with sendxmpp
#
# Thanks to David Ammouial <da AT weeno.net>
#
# cat examples/send-url.xml | sendxmpp --raw
#

# Sending an URL along with a message:
<message to='foo@server.com'>
    <body>Check out the new sendxmpp website!</body>
    <x xmlns='jabber:x:oob'>
        <url>http://sendxmpp.hostname.sk/</url>
    </x>
</message>

# Adding an item to the roster
<iq type="set" id="a1">
    <query xmlns="jabber:iq:roster">
        <item jid="newfriend@hello.com" name="Lisa" />
    </query>
</iq>

# Sending a presence subscription request
<presence to="newfriend@hello.com" type="subscribe">
    <status>Please authorize me :)</status>
</presence>


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top