Uri uri = new Uri(objM3API.URL); ICredentials credentials = CredentialCache.DefaultCredentials; NetworkCredential credential = credentials.GetCredential(uri, "Basic"); request.Credentials = credential; request.Accept = "application/json"; // Get response using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { if (response.StatusCode == HttpStatusCode.OK) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)