Replacing WebRequest.CreateHttp() with  HttpWebRequest.Create()

for cross-platform compatibility