debug post method