Split POST and GET handlers.

So we do not get a redirect loop
not used?