Ejemplo n.º 1
0
        public void AddHeaders(ref HttpWebRequest req)
        {
            req.UserAgent = UserAgent;
            //req.Headers.Add("Origin", req.RequestUri.GetLeftPart(UriPartial.Authority));
            req.Referer = Referer;
            req.Host    = req.RequestUri.Host;
            //Console.WriteLine(Cookies.GetSerialized());
            lock (Cookies)
                req.Headers.Add("Cookie", Cookies.GetSerialized());
            req.Timeout = int.MaxValue;
            req.Headers.Add("DNT", "1");

            req.Headers.Add("Sec-Fetch-Mode", "no-cors");
            req.Headers.Add("Sec-Fetch-Site", "cross-site");
        }