문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top