This module allows sending XMPP <message> stanzas via a simple HTTP API. It's currently in the extra modules Mercurial repository.
curl http://example.com:5280/msg/user -u
me@example.com:mypassword -H "Content-Type: text/plain"
-d "Server@host has just crashed!"