Skip to content

webdav should use PROPFIND instead of OPTIONS call to check for server #46

@prabirshrestha

Description

@prabirshrestha

Some webdav servers don't have OPTIONS configured. Option makes sense for browsers and not clients. Looking at other ios clients for webdav, they seem to use PROPFIND to verify the server credentials instead of using OPTIONS. Is it possible for switch this so OPTIONS calls doesn't need to be configured on the server?

func checkServer() {
guard let url = URL(string: uri) else {
activityIndicatorView.stopAnimating()
return
}
testState = 0
var request: URLRequest = URLRequest(url: url)
request.httpMethod = "OPTIONS"
let task = dataSession.dataTask(with: request)
task.resume()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions