So I have a phpbb forum (where I'm the admin) and what I would like to do is to write a simple program that logs in into the Admin Control Page (ACP), navigates to the maintence section (where a backup of the database is located) and then download a backup for the database (or a specific table of the database).

What I need help with is how to automate the actual log-in, navigation and download of this backup (which is a .sql file by the way). Or at the very least some pseduo-code and directions to API's to get me started.

Once inside the ACP this is how it looks like