Не могу получить ответ от моего сайта по запросу http C# - PullRequest
0 голосов
/ 25 апреля 2020

C# Я не могу получить ответ с моего сайта по Http-запросу.

Мой код

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;
WebClient client = new WebClient();

string url = "https://www.freeminecrafts.com/reklam.php";

byte[] html = client.DownloadData(url);

UTF8Encoding utf = new UTF8Encoding();

string mystring = utf.GetString(html);
MessageBox.Show(mystring);

Может ли кто-нибудь мне помочь?

...