I'm trying to send request with default headers, but i'm getting response error:
"Encoding 'identity' is not supported. Supported encodings are gzip or deflate."
When I change encoding to gzip response is OK, but unfortunately I need to use identity for some reasons. Why it is not supported? How to send request with identity encoding? My code:
var url = "http://address.com/sub/test";
var form = new WWWForm();
form.AddField("User", "u1");
form.AddField("Password", "p1");
var headers = form.headers;
headers["Accept-Encoding"] = "identity"; // default encoding
var www = new WWW(url, form.data, headers);
StartCoroutine(WaitForRequest(www));
private static IEnumerator WaitForRequest(WWW www) {
yield return www;
if (www.error == null)
...
}