add POST method support and test case