Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy settings #2

Open
zoffoliluca opened this issue Mar 6, 2015 · 1 comment
Open

Proxy settings #2

zoffoliluca opened this issue Mar 6, 2015 · 1 comment

Comments

@zoffoliluca
Copy link

I have a question :
What if I'm behind a proxy?
Is there a property to set?

Thanks!

@RobThree
Copy link
Owner

RobThree commented Mar 6, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants