The reason Firefox would be easier than Perl is because all the authorization is already set if you use the cookies.
While I know Perl is very powerful, it has to be one of the ugliest languages I've ever used.