add https support

this api just only support https connection