Mercurial > prosody-wiki
annotate mod_post_msg.wiki @ 438:687c9f95c8ad
Edited wiki page mod_email_pass through web user interface.
author | luisgf@gmail.com |
---|---|
date | Thu, 13 Mar 2014 15:41:53 +0000 |
parents | efb2f5f8317c |
children | 528721aaea46 |
rev | line source |
---|---|
154 | 1 #summary Receives HTTP POST request, parses it and relays it into XMPP. |
153 | 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 | |
366
efb2f5f8317c
mod_post_msg.wiki: Add Content-Type header to example
Kim Alvefur <zash@zash.se>
parents:
154
diff
changeset
|
11 * curl http://example.com:5280/msg/user -u me@example.com:mypassword -H "Content-Type: text/plain" -d "Server@host has just crashed!" |
153 | 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 | |
366
efb2f5f8317c
mod_post_msg.wiki: Add Content-Type header to example
Kim Alvefur <zash@zash.se>
parents:
154
diff
changeset
|
21 |