Zimbra allows to download files via webdav. Unfortunately files with spaces in the name only give empty files back.
How do I have to escape the spaces correctly?
curl --basic -k --user user1:password https://server.com/dav/user1/attachments/by-type/text/today/file\ with\ spaces.ics --output calendar.ics <--- empty
curl --basic -k --user user1:password "https://server.com/dav/user1/attachments/by-type/text/today/file with spaces.ics" --output calendar.ics <--- empty
curl --basic -k --user user1:password https://server.com/dav/user1/attachments/by-type/text/today/file%20with%20spaces.ics --output calendar.ics <--- empty
This works:
curl --basic -k --user user1:password https://server.com/dav/user1/attachments/by-type/text/today/file_without_spaces.ics --output calendar.ics <-- correct file
The server is a Zimbra 8.0.9. I hope it's not a bug of this older version cause updating is no option.