 <p>You should be able to do this with <a href="http://mechanize.rubyforge.org/" rel="nofollow">mechanize</a>. It emulates a real broswer, and is quite powerful. About the only major feature lacking is a javascript engine, so it won't work if the blog uses javascript in its authentication.</p>