I’m trying to Log into a website using WebRequests in C# But the website is using Google-Analytics libraries which is making some UTM-Cookies
The question is how can I catch those cookies values and pass them to the website?
I’m trying to Log into a website using WebRequests in C# But the website
Share
The
HttpWebRequestclass has aCookieContainercollection property that you can add instances of theCookieclass.The
HttpWebResponseclass has aCookiescollection property that contains instances of theCookieclass.Make your request, read the cookies from the response, and add them to any subsequent requests as needed.