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

IOS HTTP GET with Authorization Header not being sent

$
0
0
Hi! I have got a problem connected to sending HTTP GET request with authorization header on iOS platform. In the editor and on Android it's fully working, but on iOS it is working nondeterministically. With POST there is no problem with sending header. I would really appreciate your feedback on this. Below I am attaching code for creating request: var www = UnityWebRequest.Get(url); www.timeout = timeout; foreach (var headerData in header) { www.SetRequestHeader(headerData.Key, headerData.Value); } and for creating request header: public Dictionary GetAuthorizationToken() { return new Dictionary { {"Authorization", "Bearer " + _userDataManager.UserData.AuthorizationToken} }; }

Viewing all articles
Browse latest Browse all 190

Trending Articles



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