Move User-Agent and Content-Type headers to getStandardHeaders() method.