implement a command line curl with cookie local storage