Added post logging and better HTTPError handling.