31 lines
692 B
C#
31 lines
692 B
C#
//// MxWs
|
|
//// 3rd Gen MxW Server
|
|
//// BY MIKX
|
|
//// https://git.mikx.xyz/wow/MxWs
|
|
//// https://wow.mikx.xyz
|
|
//// Licensed under the Apache License 2.0
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MxWs.Utilities
|
|
{
|
|
class Web
|
|
{
|
|
public static void DownloadFileNoAsync(string url, string file)
|
|
{
|
|
using (WebClient wc = new WebClient())
|
|
{
|
|
ServicePointManager
|
|
.ServerCertificateValidationCallback +=
|
|
(sender, cert, chain, sslPolicyErrors) => true;
|
|
wc.DownloadFile(url, file);
|
|
}
|
|
}
|
|
}
|
|
}
|