Newer versions of django handle application/json in a more correct way by having the payload in the request body rather than a url parameter to the HTTP post request. see https://docs.djangoproject.com/en/dev/releases/1.5/section #non-form-data-in-http-requests We can therefore remove the: - params = urllib.urlencode({'data': data}) As we should not be sending a body with a url as the content rather we can correctly send the application/json as the body and pass the data directly. - conn.request("POST", "http://%s/ClientPost/" % server, params, headers) + conn.request("POST", "http://%s/ClientPost/" % server, data, headers) Compatibility has been added to the error-report-web so that we can handle this transition but we should deprecate it in future versions.
893be80139e10819911431a68ce7ff9e237e8e89 views/tests: Add a user-agent path to switch payload decode paths