in reply to A tool that logs and then parses the returned HTML.
WWW::Mechanize may be right up your alley. It wraps LWP and in many cases can take care of logins and passwords for you.