You can use the xmlrpc api. there are firefox addons that let you post from firefox, and i know at least one allows storing multiple login credentials, no idea what its called though.
edit - i think this should do it
https://addons.mozilla.org/en-US/firefox/addon/1730/