in reply to pass user name & password

Check out WWW::Mechanize, see if that fits your needs.