Requests this page: https://login.minecraft.net/?user=USERNAME&password=PASSWORD&version=12; If the request fails the failed variable .