I have been researching this on the web for about 2 hours now and I have not come up with anything. I'm hoping that someone can point me in the right direction or provide sample code.

I would like to write an application that will automate logins to websites. It will require a post, followed by parsing the values returned (cookie, querystring) followed by a second post based on the values returned.. (I would like to maintain state)