Answers for "c# webrequest cookies"

C#
0

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.
Posted by: Guest on June-30-2020

C# Answers by Framework

Browse Popular Code Answers by Language