change make_http function to use https