- Home /
WWW POST request headers gone on webplayer facebook
I am encountering a strange issue in my Unity game, I am trying to send some data with authorization headers to my web service in a POST request. The game is hosted in a facebook unity canvas. the request code looks like
 Hashtable headers = new Hashtable();
 headers.Add("Content-Type", "application/json");
 headers.Add("Token", "AquiredFromFacebook");
 // ... other custom headers
 string data = "{#JSON encoded string#}";
 WWW www = new WWW(servicelUrl, Encoding.UTF8.GetBytes(data), headers);
The problem is , in my server end , the headers are gone only if it is sent from within the facebook hosted webplayer, in the unity editor everything seemed to be OK. I am not sure what seemed to be wrong, any help is appreciated
Answer by Shmakov · Mar 12, 2015 at 05:16 PM
This is a well known bug. See http://issuetracker.unity3d.com/issues/www-post-request-on-webplayer-built-by-unity-5-dot-0-0f2-creates-an-invalid-request
Your answer
 
 
             Follow this Question
Related Questions
GetUnity() on webplayer not working properly 1 Answer
Web Player build leaderboard returns blank data when integrated the game in Facebook page. 0 Answers
HTTP Referer header and Unity Web Player (Internet Explorer 11) 0 Answers
Try catch alternative for HTTP request 1 Answer
post to wall facebook 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                