This is a compound question that I hope someone can help with.
My school has an open wireless network, which, once you associate with it, firewalls all traffic, except for port 80 which uses a transparent proxy to redirect you to an https page where you enter your school userid and password, in order to be able to get access to the network.
What I wanted to do -- and I am sure it's possible, is run curl as soon as my computer associates with the school's network, and make a POST to the login server.
That way I could be online by the time xdm starts.
I can think of a few clumsy ways to do this, but I wanted your input on how the most elegant way to do this would be.
1. How would I run an external script when my wireless device associated with a specific ssid.
Can I do that from /etc/init.d/net? If not is there some kind of Daemon that can do certain actions when a connection is made under certain circumstances?
2. I looked through the html form code, and I didn't see any unique tokens or session data that would require me to fetch and process the login page, so I am assuming that I can just submit the same https form data over and over to authenticate.
Does anyone have any experience with this?
What would be the best way to capture http post data?
I could use a packet sniffer, or try to extrapolate it by dissecting the html form, but it feels like there should be an easier way to do this, especially for more complex forms, perhaps some firefox plugin I don't know about?
This may also apply to authenticating on any number of access points at coffee houses or businesses which require you to see a user agreement before use.
Cheers.

