Changing the http method to https