I''m using the net_dav gem from https://github.com/devrandom/net_dav
and
I''m having a problem pulling back files. Basically, I''m able
to connect
and doing a dav.get("/") will return the html of the page, but if I
try to
get a specific file like dav.get("/share.txt") I get a 404 not found
error. If I navigate to the same DAV address I connected to using ruby/irb
in my web browser I can see the file there plain as day. Is this matter of
permissions, or is there something in my usage that''s wrong. Thanks in
advance.
dav = Net::DAV.new("https://website.edu", :curl => false)
dav.verify_server = false
dav.credentials(''username'',''password'')
dav.cd("dav/12345/")
dav.get("/share.txt")
Error:
Net::HTTPServerException: 404 "Not Found"
from C:/Ruby/lib/ruby/1.8/net/http.rb:2105:in `error!''
from
C:/Ruby/lib/ruby/gems/1.8/gems/net_dav-0.5.0/lib/net/dav.rb:173:in
`handle_request''
from
C:/Ruby/lib/ruby/gems/1.8/gems/net_dav-0.5.0/lib/net/dav.rb:104:in
`request_returning_body''
from
C:/Ruby/lib/ruby/gems/1.8/gems/net_dav-0.5.0/lib/net/dav.rb:496:in
`get''
from (irb):60
from ♥:0
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/Ounf3Ub_LP4J.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.