Remove calls to setDoOutput(true) on HTTPUrlConnection when not doing output.
Remove print of http message body to console introduced accidentally at 5e19dbf1.