How can I use authentication with System.ServiceModel.Syndication to read a private RSS?
The code I use right now just returns forbidden.
I have tried adding &PASS=password and &PASSWORD=password to the URL but it doesnt help.
try
{
using (XmlReader reader = XmlReader.Create("http://trac:8080/Project/report/7?format=rss&USER=enr"))
{
tracFeed = SyndicationFeed.Load(reader);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
@bnkdev
You are right, but something doesnt work I dont know why but it seems to be a problem on the server I guess?
Both urls work in IE, the difference is the first one immediately pops up a login window, but the second one redirects me to a page where I can log in…
So I do think something is fishy there….