Question

I am using webdav to get a list of files, create folders, etc.. which require the user name and password inside the request. (all working well)
But I want to know if there is a way to perform only log in, without any additional action?
Just to make sure the user name and password are valid, and have access to SharePoint (in my case)
Maybe there is something like getting user's information? just as a test..

Was it helpful?

Solution

You can use a HEAD or OPTIONS request for this purpose. Just include the credentials and you'll get a 401 if they're not valid.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top