I\'m trying to create a python program that logs in to my university\'s site using my id and password. This is the formal page for logging in: https://webapp.pucrs.br/consul
I recommend you to use mechanize, it automatically handles sessions/cookies/logins for you, furthermore it provides a urllib-like API and e.g. form-filling, so you don't have to mess with the right POST-request, since it gets constructed by mechanize.