In .NET world, If you want to invoke web pages, fill out forms, click links, etc..., you can writing logic target the WebBrowser Class.
for example, you need to enter username/password everytime when you access some wireless network which is secured by Cisco Wireless web authentication.
you can write a Simple C# application to parse the Dom, get the input fields and assign the value, then invoke the click event on the submit button. here is one sample C# Code.
if you have the problem on MAC, you can’t use the .NET for sure.
I am always looking for the same web Brower control , unfortunately, there is NO webbrwser control which works like the C# one. However, you can use the HTMLUnit
with HtmlUnit, you can write a 10 tines of code to loadup one URL, fillout some forms, and submit.
here is one sample java code