Changeset

6236: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 6235:db308d6a3b56
children 6237:4f0ed0e3ad5a
files mod_rest/README.md
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
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