It is quite simple, almost everything you'll need you can find in here.
Just pay attention to the 2 hidden fields that you need to retrieve first and then append to your request: lt and execution. There are more hidden fields but their values don't change.