On my university network I have to first connect with DHCP and then log in via a web form. I can easily write a shell script to do the web form login (just one call to curl(1) really). However, I can't figure out how to run this, or an AppleScript, or anything, automatically when I connect to this particular network.