I have used Curl to retrieve an ical file using the following:-

curl -o cal.ics -u userasswd http://server/servlet/webdav.ical
...