Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
1 // download the feed
2 WebClient wc = new WebClient();
3 wc.Proxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;
4 byte[] feed = wc.DownloadData(url);
This is adequate for this UI application but for a more robust solution you may need to modify this to allow a user name, password and proxy string to be passed in somehow.
So, now I executed the Rssdl.exe too to create the class. This created jonsie.cs for me. I then created a simple console app to dump the title of all the items on the blog:
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4
5 using RssToolkit;
6
7 namespace JonsieExtract
8 {
9 class Program
10 {
11 static void Main(string[] args)
12 {
13 jonsieChannel jc = jonsieChannel.LoadChannel();
14
15 foreach (jonsieItem ji in jc.Items)
16 {
17 Console.WriteLine(ji.Title);
18 }
19 Console.ReadLine();
20
21 }
22 }
23 }
Which produced this:
Cool! Oh, crap. I only get the last 15 posts. I need all of them. Oh yeah, this is a setting in .Text. So I log to my old site and .. hang on, where's the admin options?
IE 7 has problems displaying the tabs. Fortunatly I have a spare machine with IE6. I set the Default number of posts on the home page/feed to 115 and click save. And wait. And wait. And wait. Bum. Looks like .Text is as useful as ever. Oh well, part 2 another day.