Mercurial > prosody-modules
comparison mod_post_msg/README.wiki @ 1782:29f3d6b7ad16
Import wiki pages
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 24 Aug 2015 16:43:56 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1781:12ac88940fe3 | 1782:29f3d6b7ad16 |
---|---|
1 #summary Receives HTTP POST request, parses it and relays it into XMPP. | |
2 | |
3 = Introduction = | |
4 | |
5 Sometimes it's useful to have different interfaces to access XMPP. | |
6 | |
7 This is example of sending message using HTTP POST to XMPP. For sure we need user auth information. | |
8 | |
9 = Example usage = | |
10 | |
11 * curl http://example.com:5280/msg/user -u me@example.com:mypassword -H "Content-Type: text/plain" -d "Server@host has just crashed!" | |
12 | |
13 This would send a message to user@example.com from me@example.com | |
14 | |
15 = Details = | |
16 | |
17 By Kim Alvefur <zash@zash.se> | |
18 | |
19 Some code borrowed from mod_webpresence | |
20 | |
21 |