retrieve data from a post request