is this a json response? If so, use this: https://github.com/edx/edx-platform/blob/master/common/djangoapps/util/json_request.py#L29