I am trying to create a application that will consume RSS data using .NET Framework. The RSS site requires User name and Password to start with. and Am running this applicat
solved the issue by using following code
string credentials = Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes("UserName" + ":" + "Password"));
StringBuilder outputData = new StringBuilder();
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(RSSFeed);
myHttpWebRequest.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials;
myHttpWebRequest.Headers.Add("Authorization", "Basic " + credentials);
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
Stream streamResponse = myHttpWebResponse.GetResponseStream();