Edit: Why the minus one?
What I am trying to do is the following:
What's the error message you get? Independently of that; your school's website might check the referrer header and make sure that the request is coming from (an application pretending to be...) its login page.