check if request is query only on POST