Use HttpClient instead of HttpWebRequest.