2 years ago | 4 commits to master since this release
3 years ago | 13 commits to master since this release
WebDavSession.ListAsync
methods now have an optional parameter specifying a UriKind
(default is UriKind.Absolute
). By this parameter, the format of the Uris of the resulting WebDavSessionListItems
can be specified.IWebProxy
from WebDavSession
. If a proxy should be used, use one of the constructors of WebDavSession
accepting a HttpMessageHandler
and provide information about a proxy with a HttpClientHandler
.4 years ago | 26 commits to master since this release
4 years ago | 41 commits to master since this release
WebDavSession
: New overload for DownloadFileWithProgressAsync
accepting a WebDavSessionItem
to download.WebDavClient
: Added missing method overloads.4 years ago | 46 commits to master since this release
4 years ago | 54 commits to master since this release
HttpVersion
(WebDavClient
/WebDavSession
) to use HTTP/2 instead.WebDavSession
now exposes the DefaultRequestHeaders
of the underlying WebDavClient
. By using this property, default headers can be set which should be sent with every request of the WebDavSession
.4 years ago | 64 commits to master since this release
4 years ago | 66 commits to master since this release
WebDavClient
or are handled by the class AdditionalProperties
(when using WebDavSession
/WebDavSessionItem
). See the documentation for instructions on how to use unknown WebDAV properties with the library.WebDavSesionListItem
to WebDavSessionItem
.WebDavSession
now supports Proppatch operations with the methods UpdateItemAsync
and UpdateItemsAsync
: Use the ListAsync
methods to retrieve WebDavSessionItems
, then change the properties of these items. Finally you can use the methods UpdateItemAsync
/UpdateUtemsAsync
of WebDavSession
passing the changed WebDavSessionItems
in oder to update the item's properties on the server (Proppatch). Note that not all WebDAV servers support Proppatch for all properties. So maybe you will not be able to change properties of a WebDAV element with these methods.WebDavSession
(e.g. copy, mode, delete, etc.) can now be used by specifying a WebDavSessionItem
.WebDavSession
(GetSupportedPropertyNamesAsync
) to retrieve a list of WebDAV properties supported by a WebDAV item.DebugHttpMessageHandler
: This handler can be used for WebDavClient
and WebDavSesion
in order to get the request/response (and their content) printed on the debug console. Note that this message handler should not be used in a productive environment.ICredentials
for credentials.UriHelper.CombineUri
sometimes threw exception when both URIs were the same.4 years ago | 84 commits to master since this release
System.Net.Http
(see Microsoft Security Advisory 4021279: Vulnerabilities in .NET Core, ASP.NET Core Could Allow Elevation of Privilege).4 years ago | 101 commits to master since this release
WebDavSessionListItem
: Keep in mind that not every WebDAV server supports the same properties. Often a server only supports a subset of the specifications or even adds additional properties. So, when a property of a WebDavSessionListItem
is null, the WebDAV server may not support these properties.WebDavSessionListItem
are strongly-typed now (DateTime
and numeric values).WebDavSession
now exposes some protected members, so that the class can be overridden for special purposes (e.g. when new types should be added to the WebDAV object model in a project).4 years ago | 108 commits to master since this release
AbsoluteUri
, CodedUrl
and NoTagList
do not provide public constructors anymore so that the specification cannot be bypassed. Use the TryParse
methods to create an instance of these classes.AbsoluteUri.ToString
: Do not try to parse, de- or encode the URI.4 years ago | 116 commits to master since this release
4 years ago | 119 commits to master since this release
4 years ago | 162 commits to master since this release
4 years ago | 195 commits to master since this release
4 years ago | 212 commits to master since this release
4 years ago | 229 commits to master since this release
4 years ago | 240 commits to master since this release
4 years ago | 260 commits to master since this release
4 years ago | 266 commits to master since this release
4 years ago | 275 commits to master since this release
4 years ago | 282 commits to master since this release
5 years ago | 293 commits to master since this release
5 years ago | 324 commits to master since this release
5 years ago | 346 commits to master since this release
Important when using this library in a UWP (Windows 10) project
Currently there is a bug in the System.Net.Http.HttpClient which is referenced in UWP projects (see MSDN forums). The WebDavClient uses this HttpClient in order to send its WebDAV request which results in the following exception when accessing WebDAV resources:
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.NotSupportedException: This IRandomAccessStream does not support the GetInputStreamAt method because it requires cloning and this stream does not support cloning.
The bug will be solved in a future release of the System.Net.Http assembly. To be able to use the Portable WebDAV Library in a UWP project, you have to add a reference to the pre-release NuGet package 'System.Net.Http':
Right click on your project in Visual Studio > Manage NuGet Packages... > Browse > Search for 'System.Net.Http' and tick the option Include prerelease > Now install the latest beta version of this package.
5 years ago | 358 commits to master since this release