'Send lti2 json result service request.'

def _send_lti2(self, payload):

    url = self.server.grade_data['callback_url']
    url_parts = url.split('/')
    url_parts[(-1)] = 'lti_2_0_result_rest_handler'
    anon_id = self.server.grade_data['sourcedId'].split(':')[(-1)]
    url_parts.extend(['user', anon_id])
    new_url = '/'.join(url_parts)
    content_type = 'application/vnd.ims.lis.v2.result+json'
    headers = {'Content-Type': content_type, 'Authorization': self._oauth_sign(new_url, payload, method='PUT', content_type=content_type)}
    response = requests.put(new_url, data=payload, headers=headers, verify=False)
    self.server.grade_data['status_code'] = response.status_code
    self.server.grade_data['TC    answer'] = response.content
    return response
