Canonicalize get/post requests