update get/post method