Mercurial > prosody-modules
diff mod_pubsub_post/README.markdown @ 4552:c87181a98f29
mod_pubsub_post: Add support for urlencoded form-data
This would allow a subset of JSON payloads to be passed easily with
simple `curl -d foo=bar -d hello=there` calls.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 26 Apr 2021 02:49:25 +0200 |
parents | a6db99c1420a |
children | 6bcccc63b542 |
line wrap: on
line diff
--- a/mod_pubsub_post/README.markdown Mon Apr 26 02:49:06 2021 +0200 +++ b/mod_pubsub_post/README.markdown Mon Apr 26 02:49:25 2021 +0200 @@ -31,7 +31,13 @@ -H "Content-Type: application/xml" \ --data-binary '<feed xmlns="http://www.w3.org/2005/Atom"> <entry><title>Hello</title></entry></feed>' +``` +## Simple form-data + +``` {.bash} +curl http://localhost:5280/pubsub_post/princely_musings \ + --data musing="To be, or not to be: that is the question" ``` # Configuration