class CheckProxy
{
public void Checked(string MyProxy, bool w8)
{
for(int i = 0; i <= 4; i++)
{
string httpResponse = null;
if (w8 == true) i = 0;
httpResponse = ZennoPoster.HttpGet(“https://zennoclub.com/files/download/check_proxy.html”, MyProxy, “UTF-8”, ZennoLab.InterfacesLibrary.Enums.Http.ResponceType.BodyOnly, 3000, “”, “Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36”, true, 5);
if (i >= 3) throw new Exception(“Не работает прокси: ” + MyProxy);
if (httpResponse != “ok”) Thread.Sleep(1500);
if (httpResponse == “ok”)break;
}
}
}