Technically this question isn't related to any specific language. Basically, what I need to do is extract information from a website relating to the current logged user.

The website has your standard login form - it seems to use JSP as the language. What I need to do is find a way to login into this form via code so I can access the page I need to extract data (thankfully, the URL is the same for all users so that doesn't matter).

How can I accomplish this?