query in post method changed to body