Skip to content
WebDav client library
Latest commit 6f748e8 Jul 12, 2012 @devrandom Merge pull request #26 from alicraigmile/master
SSL client certificate authentication and support for local certificate authorities
Failed to load latest commit information.
spec Add field Net::DAV#last_status that contains the last status as retur… Aug 19, 2011
tmp tmp dir for testing Oct 29, 2009
.document Version bump to 0.0.0 Oct 28, 2009
LICENSE initial version Oct 28, 2009
VERSION Version bump to 0.5.0 Mar 12, 2010
net_dav.gemspec Regenerated gemspec for version 0.5.0 Mar 12, 2010
net_dav.gif added logo file. Mar 10, 2010


Net::Dav library, in the style of Net::HTTP


Installing the gem:

gem install net_dav

and if you want acceleration for large files (from 4MB/s to 20MB/s in my setup):

gem install curb

If you're having install issues with nokogiri on Mac OS X read


Net::DAV.start("https://localhost.localdomain/xyz/") { |dav|
  find('.', :recursive => true) do | item |
     item.content = item.content.gsub(/silly/i, "funny")

(Note that if you want to use “.” to refer to the origin URL, it should end with a slash, otherwise it is assumed that the last component is a file and “.” will refer to the parent.)


RDoc: Wiki:


This should be threadsafe if you use a different Net::DAV object for each thread. Check out script/multi-test for a multi-threaded application.

Installing the curb gem will gain speedup with large files, but currently is much slower doing many small get operations. If your usecase is the latter and you have curb installed, you can disable its use by passing the

:curl => false

option to Net::DAV::start or Net::DAV::new .


Thanks go to Thomas ( ) and others for their help.

Thomas is writing the easy to use based on net_dav.

Something went wrong with that request. Please try again.