Import Debian changes 1.24-1
[cascardo/sendxmpp.git] / examples / sendxmpp-raw-messages
1 #
2 # RAW XMPP messages, which can be used with sendxmpp
3 #
4 # Thanks to David Ammouial <da AT weeno.net>
5 #
6 # cat examples/send-url.xml | sendxmpp --raw
7 #
8
9 # Sending an URL along with a message:
10 <message to='foo@server.com'>
11         <body>Check out the new sendxmpp website!</body>
12         <x xmlns='jabber:x:oob'>
13                 <url>http://sendxmpp.hostname.sk/</url>
14         </x>
15 </message>
16
17 # Adding an item to the roster
18 <iq type="set" id="a1">
19         <query xmlns="jabber:iq:roster">
20                 <item jid="newfriend@hello.com" name="Lisa" />
21         </query>
22 </iq>
23
24 # Sending a presence subscription request
25 <presence to="newfriend@hello.com" type="subscribe">
26         <status>Please authorize me :)</status>
27 </presence>
28