Changed from using HttpClient to HttpWebRequest