Update README.md

This commit is contained in:
James Booth
2015-06-01 00:16:31 +01:00
parent 4b731d65c4
commit ffe532624c

View File

@@ -125,7 +125,7 @@ The second argument is the HTTP port on which Stabber will listen.
To send a message to a client currently connected to Stabber on port 5230, send a POST request to `http://localhost:5231/send` with the body containing the stanza to send, e.g.:
```
curl --data '<message id="prof_msg_12" to="stabber@localhost/profanity" from="buddy1@localhost/laptop" type="chat"><body>Here's a message sent from stabber, using the HTTP api</body></message>' http://localhost:5231/send
curl --data '<message id="prof_msg_12" to="stabber@localhost/profanity" from="buddy1@localhost/laptop" type="chat"><body>Here is a message sent from stabber, using the HTTP api</body></message>' http://localhost:5231/send
```
# Examples