Domanda

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..

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top