It can be done on some sites simply by sending the same http request as the normal login process would send but many sites have security protocols in place which make it a little harder. I believe there is a firefox plugin that can record the http request info when you login the normal way then you can program curl to send the same data and fingers crossed for if it works.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259