# HG changeset patch # User Kim Alvefur # Date 1744965431 -7200 # Node ID 5ab0e560027aeebca4f26b6643d30ba533664e03 # Parent db308d6a3b5632a139b419ce99bddba9d0de3a41 mod_rest: Tweak curl example Why did we have -k/--insecure here? diff -r db308d6a3b56 -r 5ab0e560027a mod_rest/README.md --- 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