I have problem trying to use preemptive authentication (Slide WebDAV Client 2.2Pre1, but previous versions too). Namely, executing:
URL = 'http://myhost.mydomain.com/webdavroot' username = 'someuser' password = 'someuserspassword' WebDAV_root = '/webdavroot' search_query = '... (good search query in proper grammar)...' client = HttpClient; client.setState(WebdavState); hostConfig = client.getHostConfiguration; hostConfig.setHost(URL); userCredentials = UsernamePasswordCredentials(username, password); clientState = client.getState; clientState.setCredentials(URL.getHost, userCredentials); clientState.setAuthenticationPreemptive(true); method = SearchMethod(WebDAV_root, search_query); results = client.executeMethod(method); server log shows search request WITHOUT credentials received. If we allow anonymous access to the WebDAV store, the search returns results, but without anonymous access allowed, you can guess, no. However, if I do: URL.setUserinfo(username, password); wdr = WebdavResource(url); then server log shows propfind request WITH proper credentials. (I know SEARCH and PROPFIND are not the same thing, the examples address authentication, though) So: - does anyone know why the first code fails to authenticate? Am I missing something or is that Slide WebDAV client issue? - why isn't there search as a method of webdavresource? - could I pass SEARCH request through the executehttprequest method? I would much appreciate your thoughts or insights on the subject. Sincerely, Zoran --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
