add support for data parameter in non-post requests