comparison 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
comparison
equal deleted inserted replaced
4551:b92147edd172 4552:c87181a98f29
29 ``` {.bash} 29 ``` {.bash}
30 curl http://localhost:5280/pubsub_post/princely_musings \ 30 curl http://localhost:5280/pubsub_post/princely_musings \
31 -H "Content-Type: application/xml" \ 31 -H "Content-Type: application/xml" \
32 --data-binary '<feed xmlns="http://www.w3.org/2005/Atom"> 32 --data-binary '<feed xmlns="http://www.w3.org/2005/Atom">
33 <entry><title>Hello</title></entry></feed>' 33 <entry><title>Hello</title></entry></feed>'
34 ```
34 35
36 ## Simple form-data
37
38 ``` {.bash}
39 curl http://localhost:5280/pubsub_post/princely_musings \
40 --data musing="To be, or not to be: that is the question"
35 ``` 41 ```
36 42
37 # Configuration 43 # Configuration
38 44
39 All settings are optional. 45 All settings are optional.