combine _sendPostReq method and _sendGetReq method