using (var Request = new HttpRequest())
{
Request.UserAgent = HttpHelper.ChromeUserAgent();
Request.Get("http://allo.ua").ToString(); //именно с этим сайтом с другими проблем не возникало
}
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at xNet.Net.HttpResponse.SetCookie(String value)
at xNet.Net.HttpResponse.ReceiveHeaders()
at xNet.Net.HttpResponse.LoadResponse(HttpMethod method)
at xNet.Net.HttpRequest.SendRequest(HttpMethod method, Uri address, HttpContent content, Boolean reconnection)
at xNet.Net.HttpRequest.Raw(HttpMethod method, Uri address, HttpContent content)
at xNet.Net.HttpRequest.Raw(HttpMethod method, String address, HttpContent content)
at xNet.Net.HttpRequest.Get(String address, RequestParams urlParams)
at Main.Form1.GetContent(String uri) in C:\Users\xaker1\Desktop\диплом\ДИПЛОМНАЯ\Main\Form1.cs:line 301
Сама библиотека
XNET