Edit D:\xinhaisoft\crisis_new\App_Code\WebClientExt.cs
??sing System.Net; using System.Text; /// <summary> ///WebClientExt ???????? /// </summary> public class WebClientExt { public WebClientExt() { // //TODO: ????????????????? // } /// <summary> /// ???Get????????????????? /// </summary> public static string Get(string uri) { WebClient wc = new WebClient(); ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; wc.Encoding = Encoding.UTF8; string html = wc.DownloadString(uri); return html; } /// <summary> /// ???Post????????????????? /// </summary> public static string Post(string uri, string data) { WebClient wc = new WebClient(); ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; wc.Encoding = Encoding.UTF8; wc.Headers.Add("Content-Type:application/x-www-form-urlencoded"); string html = wc.UploadString(uri, data); return html; } /// <summary> /// ???Post????????????????????????????????? /// </summary> public static string Post(string uri, string data, string auth) { WebClient wc = new WebClient(); ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; wc.Encoding = Encoding.UTF8; wc.Headers.Add("Content-Type:application/json"); wc.Headers.Add("Authorization", "Basic " + auth); string html = wc.UploadString(uri, data); return html; } }
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de