get data for ajax post request, fix #17