c# webrequest cookies
CookieContainer cookieContainer = new CookieContainer();
System.Net.Cookie userNameCookie = new System.Net.Cookie("user", "username");
System.Net.Cookie passwordCookie = new System.Net.Cookie("password", "9848jf7s7ejhd");
cookieContainer.Add(userNameCookie);
cookieContainer.Add(passwordCookie);
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(produkt);
request.CookieContainer = cookieContainer;
//multiple cookies.
Also in C#:
- datatable return column names
- how to get the last element in an array in c#
- c# display float with 2 decimal places
- populate combobox from array c#
- c# webrequest cookies
- c# singleton
- c# string remove special characters
- question mark operator in c#
- how to find the area of a circle
- c# repeat string x times
- C# .net core convert to int round up
- Instantiate c#
- unity c# foreach
- c# trim string
- c# download string url
- linq in c#
- null coalesce ternary c#
- c# shorten an definition
- tachyons
- unity accessing 2d pointlight from c# script
- snake game
- bitmap to byte array c#
- Unity if object doens't exist
- reference to gameobject in different scene unity