Implementing code to read data files in order to complete POST requests