From 047c3da6aab23c860d46d6a77f8fc70782dd75ed Mon Sep 17 00:00:00 2001 From: Peter Bieringer Date: Mon, 10 Jun 2024 08:06:20 +0200 Subject: [PATCH] update --- Server-Diagnostics---Troubleshooting.md | 57 ++++++++++++++++++++++--- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/Server-Diagnostics---Troubleshooting.md b/Server-Diagnostics---Troubleshooting.md index 8c52108..51a3163 100644 --- a/Server-Diagnostics---Troubleshooting.md +++ b/Server-Diagnostics---Troubleshooting.md @@ -65,14 +65,20 @@ tcp6 0 0 ::1:5232 :::* LISTEN - config section: `[web]` - config option: `type` -Example: +### Redirect to landing page + +``` +curl http://localhost:5232/ +Redirected to /.web +``` + +### WebUI ``` curl http://localhost:5232/.web/ ``` - -## Connection test to any existing calendar +## Connection test to user's collection Successful result depends on auth and permission - config section: `[auth]` @@ -80,8 +86,49 @@ Successful result depends on auth and permission - config section: `[rights]` - config option: `type` + `file` -Example: + +### Without autentication ``` -curl http://localhost:5232/testcalendar/ +curl -s --request PROPFIND http://localhost:5232/ +Access to the requested resource forbidden. +``` + +### With autentication + +#### Depth: 0 + +``` +curl -s --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - + + + +... + + + +``` + +#### Depth: 1 + +``` +curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - + + + +... + + +``` + +#### Depth: 1 / extending URI by user + +(example) + +``` +curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep displayname + MyCalendar1 + Feiertage Bayern + MyCalendar2 + MySharedCalendar1 ```