SimpleFeedReader
SimpleFeedReader copied to clipboard
Proxy settings
I have a question : What if I'm behind a proxy? Is there a property to set?
Thanks!
Then you'll need to take care of retrieving the data yourself and use an XmlReader to feed the data into a FeedReader:
using (var client = new WebClient()
{
Proxy = new WebProxy("http://theproxy:port/")
{
Credentials = new NetworkCredential("user", "pass")
}
})
{
var stringreader = new StringReader(client.DownloadString("http://example.com/feed/"));
var xmlreader = XmlReader.Create(stringreader);
var items = new FeedReader().RetrieveFeed(xmlreader);
}
I'll see if I can add a property to set the proxy (actually, IProxy) so the feedreader will automatically use it. As I'm currently pretty busy I wouldn't hold my breath though. But PR's are welcome ;)