I'm trying to let my server set a cookie, however, for some reason my WebRequest does not contain a definition for CookieContainer. Can't find anybody on the internet with the same problem:
WebRequest request = WebRequest.Create(url);
request.CookieContainer = new CookieContainer();
I'm using Visual Studio 2015. I tried to add a reference to System.Net.Http.WebRequest, but no luck. Does anybody understand what the problem is? Any help is highly appreciated!