Unify GET/POST handling