Mercurial > prosody-modules
diff mod_rest/README.md @ 6203:5ab0e560027a
mod_rest: Tweak curl example
Why did we have -k/--insecure here?
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 18 Apr 2025 10:37:11 +0200 |
| parents | fe081789f7b5 |
| children | ed6fa901cf94 |
line wrap: on
line diff
--- a/mod_rest/README.md Fri Apr 18 10:36:17 2025 +0200 +++ b/mod_rest/README.md Fri Apr 18 10:37:11 2025 +0200 @@ -63,11 +63,10 @@ and lastly, drop the "@host" from the username in your http queries, EG: ```lua -curl \ - https://chat.example.com:5281/rest/version/chat.example.com \ - -k \ +curl -sf \ + -H 'Accept: application/json' \ --user admin \ - -H 'Accept: application/json' + https://chat.example.com:5281/rest/version/chat.example.com ``` ## OAuth2
