Simplified it takes the cookies and csrf token from the webbrowser control and copies them into the controller. The controller handles the rest of the requests. Before usage: Please install "Enable_IE10.reg" or "Enable_IE9.reg".
Original code copied from https://github.com/josdemmers/Grepolis2Bot Thanks to him and his great work!