handle query via POST as well