All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Tutorial: Setting Up a REST API for Sending XMPP Messages via HTTP

By

inputmice

2mo ago· 3 min readen

Summary

This tutorial explains how to set up a REST API for sending XMPP (Jabber) messages via HTTP, providing an alternative to direct XMPP server connections. The guide shows how to integrate this into monitoring solutions or scripts for sending status information, with practical examples using curl commands and authentication.

Key quotes

· 4 pulled
The goal of this tutorial is to set up a simple REST API that allows you to send XMPP messages to an existing XMPP account.
This can be easily integrated into monitoring solutions or other scripts that send out status information.
While there are command-line tools like go-sendxmpp that send messages by connecting to an XMPP server directly, this guide is specifically about providing an HTTP interface.
curl 'https://ntfy.stdmsg.tech:5281/msg/[email protected]' \ -u [email protected]:secret \ -H 'Content-Type: text/plain' \ -d 'Your flat white is done'
Snippet from the RSS feed
The goal of this tutorial is to set up a simple REST API that allows you to send XMPP messages to an existing XMPP account. This can be easily integrated into monitoring solutions or other scripts that send out status information. While there are command-

You might also wanna read