force ssl in the api request.