Has any one tried using pyDAV a webDAV library for Python, I am getting a followind error whilw trying to list the contents of a collection
2009-02-05 17:38:58,092: DEBUG: REQUEST Send OPTIONS for /uc910015/home/
2009-02-05 17:38:58,092: DEBUG: REQUEST Body: None
2009-02-05 17:38:58,092: DEBUG: REQUEST Header: ('AUTHORIZATION', 'Basic U3Rvc
2009-02-05 17:38:58,125: DEBUG: Exception: [Errno 11001] getaddrinfo failed Re
y ...
Traceback (most recent call last):
File "WebdavClient.py", line 822, in <module>
for resource, properties in webdavConnection.getCollectionContents():
File "WebdavClient.py", line 671, in getCollectionContents
File "WebdavClient.py", line 558, in validate
super(CollectionStorer, self).validate()
File "WebdavClient.py", line 120, in validate
davHeader = self.getSpecificOption(Constants.HTTP_HEADER_DAV)
File "WebdavClient.py", line 194, in getSpecificOption
options = self.options().get(option)
File "WebdavClient.py", line 131, in options
response = self.connection.options(self.path)
File "C:\Python26\Lib\site-packages\davlib.py", line 182, in options
return self._request('OPTIONS', url, extra_hdrs=extra_hdrs)
File "C:\Python26\Lib\site-packages\webdav\Connection.py", line 106, in _req
raise WebdavError("Cannot perform request. Connection failed.")
webdav.Connection.WebdavError: Cannot perform request. Connection failed.

Any Ideas why this error


What are you trying to do? If that is made clear, I hope one can suggest alternative even if He doesn't know that library like what I do :)

Thanks , I got it working, this is basically uploading data to a server using webDAV protocol

This article has been dead for over six months. Start a new discussion instead.