change post request code