By trnda
on Mon, 05/22/2017 - 09:47
"Date" and "Host" headers are required to do POST request at vuforia web services
I get exception "Cannot override system-scpecified headers" if do like this:
UnityWebRequest www = UnityWebRequest.Post(serviceURI, JsonWriter.Serialize(model));
www.SetRequestHeader("Content-Type",contentType);
www.SetRequestHeader("Date",date);
www.SetRequestHeader("Host",url);
or this
WWWForm form = new WWWForm ();
var headers =form.headers;
headers["Host"]=url; headers["Date"] = date;
WWW request =new WWW(serviceURI,System.Text.Encoding.UTF8.GetBytes(JsonWriter.Serialize(model)), headers);
were you able to figure out a
were you able to figure out a solution to this?