I'd look a splitting this method into one that creates the message and one that handles the http stuff just for clarity and to reduce some of the local vars.