'Generate the headers that will be used in the refresh request.'

def _generate_refresh_request_headers(self):

    headers = {'content-type': 'application/x-www-form-urlencoded'}
    if (self.user_agent is not None):
        headers['user-agent'] = self.user_agent
    return headers
