Have a look at WWW::Mechanize, it could very well address your requirements.
In reply to Re: Log On To Secure Site by shmem in thread Log On To Secure Site by Kass