From: Gregory Seidman Date: 2007-07-09T23:36:53+09:00 Subject: Re: WebDAV: Connect Ruby to a WebDAV Server On Mon, Jul 09, 2007 at 11:29:09PM +0900, Michael Dichtl wrote: > Hi! > > Thnx for your answer! > It seems I've an blackout... i don't know how to establish the > connection. > > require 'net/http' > NET:HTTP.start('http://myWebDAV.com') > > > end > > i have no idea to do in ruby what you mean. > (logically i can understand it, but how can i do it in ruby?) At this point you need to go read the documentation. You may find it instructive to search for sample code. I've pointed you in the right direction, but I don't have time to do much more, sorry. > thnx!! --Greg > Gregory Seidman wrote: > > On Mon, Jul 09, 2007 at 10:37:54PM +0900, Michael Dichtl wrote: > >> Hello to all! > >> > >> Is there a possibility to connect ruby to a webDAV server? > >> I have a webDAV server with some files which I want to use in ruby. > >> Does anyone know how to do such a connection? > > [...] > > > > WebDAV is dead simple. It is, roughly speaking, a RESTful HTTP interface > > to > > a file store. You can interact with it using Net::HTTP or similar. If > > you > > just want to retrieve files, it is no more complicated than an HTTP GET > > request. If you want to do more with the files (e.g. create, update, > > lock, > > etc.) then you'll need to use other HTTP verbs. Read the WebDAV spec (or > > various explanations thereof), easily findable on the web, for more > > information. > > > >> Hoping for help! Thnx a lot! > >> Have a nice day, Michael! > > --Greg > > > -- > Posted via http://www.ruby-forum.com/. > >