in reply to How do I download a file that needs username and password?
Like LanX, I would (probably) use LWP for this task depending on the complexity of the site's login system.
You probably want to look at the documentation for enabling cookies.