Setter for query and post