test post/get method