add support for POST and INVALID requests