'Test PROPFIND method'

def _PROPFIND(self, domain_path):

    content = "<?xml    version='1.0'?>\r\n"
    content += "<a:propfind    xmlns:a='DAV:'>\r\n"
    content += '<a:prop>\r\n'
    content += '<a:displayname:/>\r\n'
    content += '</a:prop>\r\n'
    content += '</a:propfind>\r\n'
    headers = copy.deepcopy(self.CONTENT_TYPE)
    headers['Depth'] = '1'
    res = self._uri_opener.PROPFIND(domain_path, data=content, headers=headers)
    if (('D:href' in res) and (res.get_code() in xrange(200, 300))):
        msg = ('Directory    listing    with    HTTP    PROPFIND    method    was    found    at    directory:    "%s".' % domain_path)
        v = Vuln('Insecure    DAV    configuration', msg, severity.MEDIUM, res.id, self.get_name())
        v.set_url(res.get_url())
        v.set_method('PROPFIND')
        self.kb_append(self, 'dav', v)
