[OGo-Users] URLs Accessible from ZideStore

Adam Tauno Williams users@opengroupware.org
Thu, 03 Apr 2008 07:39:53 -0400


> I use Windows, Could you recommend me a WebDAV client for Windows? I
> am going to test with Webdrive.

That should work.  Otherwise I think both cadaver and curl are available
under CygWin.

What are you trying to accomplish?  Just retrieving raw
vCard/vEvent/vToDo objects isn't terribly useful in most cases.  You
then need a parser.

> I am a bit of confused. I obtain an ics file when I put an url
> (http://myserver:myport/zidestroe/dav/myuser/Calendar/ics) in the
> browser. Can I obtain only appointments of this way? 

Probably only appointments,  that support is provided for iCalendar
clients.   It was the gnarly way to support clients before CalDAV
support became more prevalent.

> Can I obtain tasks and contacts with a url also, or only with a
> client?

Sure, I demonstrated how to retrieve a contact at a URL -
curl -u adam:***** \
  http://gourd-amber/zidestore/dav/adam/Contacts/830020.vcf

But to enumerate the collections you need a WebDAV / GroupDAV client of
some kind (a client that does a PROPFIND).

> 2008/4/2, Adam Tauno Williams <adam@morrison-ind.com>:
>         > I can access to the appointments only with :
>         > http://myserver:myport/zidestroe/dav/myuser/Calendar/ics and
>         > http://myserver:myport/zidestroe/so/myuser/Calendar/ics
>         Those are iCalendar URLs.  The container URL just
>         "/dav/myuser/Calendar/" is a collection and not visible with a
>         web
>         browser, you need to explore it with a WebDAV client like
>         cadaver.
>         This, and the available URLs, are documented in WMOGAG,
>         http://docs.opengroupware.org/Members/whitemice/wmogag/file_view
>         > but I don't access to the contacts and tasks:
>         > http://myserver:myport/zidestroe/so/myuser/Contacts/ -->File
>         Not Found
>         > http://myserver/zidestore/so/myuser/Tasks/ -->It isn't
>         appear
>         > anything.
>         You need to use a WebDAV client [like cadaver] or send a
>         propfind
>         request.  For the details see the GroupDAV spec
>         <http://www.groupdav.org/draft-hess-groupdav-01.html>
>         You can even do it with curl -
>         curl -d "<xml>" -H "Content-Type: text/xml" -u adam:******* \
>           -X PROPFIND  http://gourd-amber/zidestore/dav/adam/Contacts/
>         You'll get a response like -
>         <?xml version="1.0" encoding="utf-8"?>
>         <D:multistatus xmlns:ap="http://apache.org/dav/props/"
>         xmlns:D="DAV:">
>           <D:response>
>             <D:href>/zidestore/dav/adam/Contacts/830020.vcf?sn=Williams</D:href>
>             <D:propstat>
>                 <D:status>HTTP/1.1 200 OK</D:status>
>                 <D:prop>
>                    <D:getetag>830020:47</D:getetag>
>                    <D:resourcetype></D:resourcetype>
>                    <D:getcontenttype>
>                      text/x-vcard; charset='utf-8'
>                     </D:getcontenttype>
>                    <D:displayname>Williams, Michelle</D:displayname>
>                    <D:href>
>                      /zidestore/dav/adam/Contacts/830020.vcf?sn=Williams
>                     </D:href>
>                  </D:prop>
>              </D:propstat>
>              <D:propstat>
>                <D:status>HTTP/1.1 404 Resource Not Found</D:status>
>                <D:prop>
>                  <D:creationdate/>
>                  <D:getcontentlength/>
>                  <D:getlastmodified/>
>                  <ap:executable/>
>                 </D:prop>
>               </D:propstat>
>            </D:response>
>           <D:response>
>         I suspect the second propstat is a bug as it looks to always
>         be a 404
>         and never contain any information.  Could be wrong as I
>         haven't looked
>         at GroupDAV or the spec in awhile.
>         Then loop through the data and request the object -
>         curl -u adam:***** \
>           http://gourd-amber/zidestore/dav/adam/Contacts/830020.vcf
>         > -How can I Know the directory of the contacts and tasks?
>         These are documented in WMOGAG
>         http://docs.opengroupware.org/Members/whitemice/wmogag/file_view
>         > -Appointments are ics files, the contacts? and tasks?
>         They are available as vCard, vEvents, etc... but you need to
>         enumerate
>         the collection and retrieve them (WebDAV).