Added "method" as a parameter

* Feature: added "method" as a parameter for query() and now we can use
  either GET or POST methods
  [ghicaale refs #14491]