So I was using FIddler, trying to look through how I could create a HttpWebRequest to login to Spotify.com Then I realized I needed the cookies it provies when logging in. Here is a picture showing the cookies
Issue is that I cant seem to store any cookies using a cookie container, mine is just empty. How do I get the __bon _ga _gat and _gid cookies and store them in a cookiecontainer?
HttpWebRequest theRequest = (HttpWebRequest)WebRequest.Create("https://accounts.spotify.com/en/login");
theRequest.Proxy = null;
theRequest.Method = "GET";
theRequest.Accept = TheAccept;
theRequest.UserAgent = User_Agent;
theRequest.Headers.Add("Accept-Encoding", "gzip, deflate"); theRequest.Headers.Add("Accept-Language", "en-US,en;q=0.9"); theRequest.Headers.Add("Upgrade-Insecure-Requests", "1"); theRequest.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; theRequest.AllowAutoRedirect = false;
//This right here is empty
var container = theRequest.CookieContainer = new CookieContainer();