Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Ребята, никак не могу разобраться. Помогите. Сервер возвращает "400", никак не пойму в чем проблема:
Код:
private List<string> GetChunksList(Proxy proxy, string url)
{
string url = "https://video-edge-c55944.cdg02.hls.ttvnw.net/v0/CugBB1dTDL4oYyh4GN8Vcj44TG4D6tSo9k32IGOP1OzdBOr8dCmpd2x41QSdMUmCU46FNk2HD4r3iha6X-wdo39svoF12JEOXU2UR4_y8cfvThMYiIlvvjE4HnOgyeW5o6gZ0beDUXCEk9XBrBTYl8QiRPD96fyQ4sbICJPX9AYdHNPCZ5DqTQ5wMbMv97e3bJBbpXXslhBm2Vya5voyxpr-3wD6lyfMwyOeYVanO5XA7ygJECYpz-9AHTNjzzQ8IEVHktyKN4YVKGSaiABL59a6HIhp8-F9T0OqX_0MsZlk-Cx0uxLzbPJhaBIQmBa_2H39eS5YyyspYlsVOBoMOHKzCw1wviOpp7vd/index-live.m3u8";
string content = null;
using (HttpRequest request = CreateHttpRequest(proxy))
{
request.KeepAlive = true;
request[HttpHeader.Accept] = @"*/*";
request[HttpHeader.AcceptLanguage] = @"ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4";
request["X-Requested-With"] = "ShockwaveFlash/25.0.0.127";
content = request.Get(url).ToString();
}
Console.WriteLine(content);
return null;
}
private HttpRequest CreateHttpRequest(Proxy proxy, bool withClientID = false)
{
HttpRequest request = new HttpRequest();
switch (proxy.Type)
{
case Enums.ProxyType.HTTP:
request.Proxy = new HttpProxyClient(proxy.IP, proxy.PORT);
break;
case Enums.ProxyType.SOCKS4:
request.Proxy = new Socks4ProxyClient(proxy.IP, proxy.PORT);
break;
case Enums.ProxyType.SOCKS5:
request.Proxy = new Socks5ProxyClient(proxy.IP, proxy.PORT);
break;
}
request.ConnectTimeout = 5000;
request[HttpHeader.DNT] = "1";
if (withClientID) request[Net.CLIENT_ID_HEADER] = Net.CLIENT_ID_VALUE;
request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Dragon/52.15.25.664 Chrome/52.0.2743.82 Safari/537.36";
return request;
}