reformatted
place the post operation within conditional
handle post requests

bit of a switcharoo so xml is part of the signing payload for POST
requests