public string get(string url) { try { string result = string.Empty; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.AutomaticDecompression = DecompressionMethods.GZip; request.Headers.Add("Authorization", "Basic YmF0dTpiaXR0ZXI="); using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) using (Stream stream = response.GetResponseStream()) using (StreamReader reader = new StreamReader(stream)) { result = reader.ReadToEnd(); } return result; } catch (Exception ex) { System.IO.File.AppendAllText(folderPath + "/logs.txt", "Get: " + ex.Message + Environment.NewLine); return ""; } } //// 24 hours of tracking //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The remote server returned an error: (400) Bad Request. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The remote server returned an error: (400) Bad Request. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception. //Get: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception.