Using a customized version of the get_data method to perform some actions on POST calls.