Changed post and put to use data object instead of data.ToString