comparison mod_post_msg.wiki @ 366:efb2f5f8317c

mod_post_msg.wiki: Add Content-Type header to example
author Kim Alvefur <zash@zash.se>
date Fri, 28 Jun 2013 17:24:36 +0200
parents 481b89e8007f
children 528721aaea46
comparison
equal deleted inserted replaced
365:2454dbf940a8 366:efb2f5f8317c
6 6
7 This is example of sending message using HTTP POST to XMPP. For sure we need user auth information. 7 This is example of sending message using HTTP POST to XMPP. For sure we need user auth information.
8 8
9 = Example usage = 9 = Example usage =
10 10
11 * curl http://example.com:5280/msg/user -u me@example.com:mypassword -d "Server@host has just crashed!" 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 12
13 This would send a message to user@example.com from me@example.com 13 This would send a message to user@example.com from me@example.com
14 14
15 = Details = 15 = Details =
16 16