Edit GET/POST method