two-factor authentication and the like may require that you parse the html for hidden form fields and submit those with your login request