Загрузка...

How to make a request in Steam correctly (Chekter Steam Kukov)?

Thread in C# created by Фарш Feb 19, 2025. 300 views

  1. Фарш
    Фарш Topic starter Feb 19, 2025 $Steam Cookies$ lzt.world/farsh
    CSHARP
                using (HttpRequest httpRequest = new HttpRequest())
    {
    httpRequest.Cookies = new CookieDictionary();

    httpRequest.SslProtocols = SslProtocols.Tls12;
    httpRequest.KeepAlive = true;

    httpRequest.AllowAutoRedirect = true;
    httpRequest.IgnoreProtocolErrors = true;
    httpRequest.AddHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
    httpRequest.AddHeader("Accept-Language", "en-US,en;q=0.9");
    httpRequest.Referer = "https://store.steampowered.com/";
    var randomUserAgent = UserAgents[new Random().Next(UserAgents.Count)];
    httpRequest.UserAgent = randomUserAgent;
    httpRequest.AllowAutoRedirect = true;
    httpRequest.MaximumAutomaticRedirections = 10;


    httpRequest.ConnectTimeout = 4000;
    httpRequest.ReadWriteTimeout = 4000;
    Socks5ProxyClient socks5ProxyClient = Socks5ProxyClient.Parse(proxy[0].Trim() + ":" + proxy[1].Trim());
    socks5ProxyClient.Username = proxy[2].Trim();
    socks5ProxyClient.Password = proxy[3].Trim();
    httpRequest.Proxy = (ProxyClient)socks5ProxyClient;

    httpRequest.Cookies.Add("steamRefresh_steam", getRefresh(cookiePath));
    bool isElementFound = false;

    var strSource1 = httpRequest.Get("https://store.steampowered.com/account").ToString();
    фрагмент кода (библиотека Extreme Net или же XNet)
    вопрос тока один:
    [IMG]

    как это пофиксить?
    куки импортируются правильно, всё ворк, тока как запросы делать на стим правильно? Гпт выдал типа стим может не пропускает без js, но чекер на селениуме не хочется делать, крупные проекты ведь делали все на запросах
     
  2. GUSAR
    GUSAR Feb 21, 2025 609 Jun 22, 2016
    Не знаю что у тебя за куки, но замени name -> steamLoginSecure
     
Loading...
Top