Quantcast
Channel: Questions in topic: "httpwebrequest"
Viewing all articles
Browse latest Browse all 190

WWW POST request headers gone on webplayer facebook

$
0
0
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

Viewing all articles
Browse latest Browse all 190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>