send querys on POST and GET requests