refactor get method . TODO: req data xml/text/html