Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

www Get plus headers dictionary works fine on Android but not on iOS

$
0
0
I know this has been an issue, but there are no answers, especially since hashtables are depricated and we have to use dictionaries. This is my code to fetch a JSon-String from a server. It works fine on Android, Mac etc, I can fetch the data from a php script, but iOS apparently does something differently, I only get a "400 Bad Request" error from the server. IEnumerator WaitForRequest() { Dictionary dict_api = new Dictionary(); string url_api = "https://api.quizlet.com/2.0/sets/mysetsid"; dict_api.Add("Authorization:", "Bearer mycodexyzf19f6611b11aea488d2e6aa08d762"); WWW download = new WWW (url_api, null, dict_api); yield return download; } Is there any reason why this does not work on iOS and is there any possibility to make it work?

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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