comparison mod_post_msg/README.markdown @ 2985:7467509abdbb

mod_post_msg/README: Update Introduction text
author Kim Alvefur <zash@zash.se>
date Wed, 04 Apr 2018 15:50:13 +0200
parents 1e7d221bba8d
children e85cf5a443e2
comparison
equal deleted inserted replaced
2984:1e7d221bba8d 2985:7467509abdbb
5 Introduction 5 Introduction
6 ============ 6 ============
7 7
8 Sometimes it's useful to have different interfaces to access XMPP. 8 Sometimes it's useful to have different interfaces to access XMPP.
9 9
10 This is example of sending message using HTTP POST to XMPP. For sure we 10 This module allows sending XMPP
11 need user auth information. 11 [`<message>`](https://xmpp.org/rfcs/rfc6121.html#message) stanzas via a
12 simple HTTP API.
12 13
13 Example usage 14 Example usage
14 ------------- 15 -------------
15 16
16 curl http://example.com:5280/msg/user -u me@example.com:mypassword -H "Content-Type: text/plain" -d "Server@host has just crashed!" 17 curl http://example.com:5280/msg/user -u me@example.com:mypassword -H "Content-Type: text/plain" -d "Server@host has just crashed!"