How to get and set Cookie for extract contents that need to login?