webdav portal upload added

This commit is contained in:
vfedosevich 2015-02-19 05:21:17 -08:00
parent 51d432fd2e
commit 38bde37b18
105 changed files with 21145 additions and 105 deletions

View file

@ -4,6 +4,7 @@ using System.Linq;
using System.Net;
using System.Net.Security;
using System.Net.Sockets;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
@ -133,7 +134,7 @@ namespace WebsitePanel.WebDav.Core
var webClient = new WebClient();
webClient.Credentials = credentials;
webClient.Headers.Add("Authorization", auth);
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
webClient.UploadData(Href, "PUT", data);
}
@ -152,6 +153,7 @@ namespace WebsitePanel.WebDav.Core
webClient.Headers.Add("Authorization", auth);
//TODO Disable SSL
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate{ return true; });
return webClient.OpenRead(_href);
}