added support for calling from CLI with GET params / HTTP headers passed in via arguments