Updated POST method to allow SSL