cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: WebDAV Support in curl/libcurl

From: Casey O'Donnell <caseyodonnell_at_gmail.com>
Date: Mon, 11 Jun 2007 13:45:26 -0400

On 6/11/07, Nick Zitzmann <nick_at_chronosnet.com> wrote:
> On Jun 11, 2007, at 10:27 AM, Tim Tassonis wrote:
> > I just wanted to ask whether libcurl supports the webdav protocol
> > on a level above setting the corresponding headers and request
> > methods "by hand".
> >
> > Things like:
> >
> > - Listing a directory, as with ftp
> > - Storing a file
>
> You can store files using CURLOPT_UPLOAD. To list a directory, OTOH,
> you're going to need to do that manually using CURLOPT_CUSTOMREQUEST,
> a write function, and an XML parser.

I've added basic WebDAV support to wxWidgets through CURL:

http://wxcode.sourceforge.net/components/wxcurl/

There are some custom WebDAV classes that you can get an idea of doing
custom requests. There is no XML parsing being done, but it will show
you how to upload/download/etc via WebDAV.

Casey
Received on 2007-06-11