1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

adjust examples

Peter Bieringer 2024-06-10 21:55:14 +02:00
parent 047c3da6aa
commit 2d398936cb

@ -99,26 +99,18 @@ Access to the requested resource forbidden.
#### Depth: 0 #### Depth: 0
``` ```
curl -s --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - curl -s --header 'Depth: 0' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
<?xml version="1.0" encoding="utf-8"?> <href>/</href>
<multistatus xmlns="DAV:"> <href>/</href>
<response> <href>/USER1/</href>
...
</response>
</multistatus>
``` ```
#### Depth: 1 #### Depth: 1
``` ```
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/ | xmllint --format - | grep "<href>"
<?xml version="1.0" encoding="utf-8"?> <href>/</href>
<multistatus xmlns="DAV:"> <href>/USER1/</href>
<response>
...
</response>
</multistatus>
``` ```
#### Depth: 1 / extending URI by user #### Depth: 1 / extending URI by user
@ -126,9 +118,15 @@ curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localho
(example) (example)
``` ```
curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep displayname curl -s --header 'Depth: 1' --request PROPFIND -u USER1:USERPASS1 http://localhost:5232/USER1/ | xmllint --format - | grep -E "(^ <href>|displayname|C:calendar-description)"
<href>/USER1/</href>
<href>/USER1/mycalendar1/</href>
<displayname>MyCalendar1</displayname> <displayname>MyCalendar1</displayname>
<displayname>Feiertage Bayern</displayname> <C:calendar-description>MyCalendar1</C:calendar-description>
<displayname>MyCalendar2</displayname> <href>/USER1/mysharedcalendar1/</href>
<displayname>MySharedCalendar1</displayname> <displayname>MySharedCalendar1</displayname>
<C:calendar-description>MySharedCalendar1</C:calendar-description>
<href>/USER1/feiertagebayern/</href>
<displayname>Feiertage Bayern</displayname>
<C:calendar-description>Feiertage Bayern</C:calendar-description>
``` ```