Clean up whitespacing and modify execute httpPostRequest to return status code instead of a boolean