System.ServiceModel.Syndication authentication

Posted by Enriquev on Stack Overflow See other posts from Stack Overflow or by Enriquev
Published on 2010-02-18T16:10:15Z Indexed on 2010/03/12 2:57 UTC
Read the original article Hit count: 399

Filed under:
|
|

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);
    }

© Stack Overflow or respective owner

Related posts about rss

Related posts about c#