You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
DecaTec edited this page Mar 8, 2019
·
3 revisions
The Portable WebDAV Library has full HTTP/2 support and uses HTTP/2 as default.
When you cannot use HTTP/2, use the property HttpVersion or an overloaded constructor of WebDavClient/WebDavSession in order to set a different HTTP version:
publicasyncTask<IList<WebDavSessionItem>>List(){// The base URL of the WebDAV server.varwebDavServerUrl=@"http://www.myserver.com/webdav/";// Specify the user credentials and use it to create a WebDavSession instance.varcredentials=newNetworkCredential("MyUsername","MyPassword");using(varwebDavSession=newWebDavSession(webDavServerUrl,credentials,newVersion(2,0))){// Set HTTP version to 1.1:webDavSession.HttpVersion=newVersion(1,1);varlist=awaitwebDavSession.ListAsync("/");returnlist;}}