WebRequest does not contain a definition for 'GetResponse' for Windows 10 Universal App
I download a Console Application on GitHub and works fine. But I want to translate this C# Console Application to a Universal Windows 10 Application. The error on Visual Studio : Web Request does not contain a definition for... This is the code: private AccessTokenInfo HttpPost(string accessUri, string requestDetails) { //Prepare OAuth request WebRequest webRequest = WebRequest.Create(accessUri); webRequest.ContentType = "application/x-www-form-urlencoded"; webRequest.Method = "POST"; byte[] bytes = Encoding.ASCII.GetBytes(requestDetails); webRequest.ContentLength = bytes.Length; using (Stream