add SSL verify,  fix cookie issue