NSURLRequest setValue: forHTTPHeaderField:@“Authorization” not working

走远了吗. 提交于 2019-12-06 11:31:44

I had the same issue. Output your authValue, it probably contains new lines. For the application only authentication after you do base64 you need to remove new lines from authValue otherwise the header field won't be set.

Or just use already written Objective-C library for Twitter REST API 1.1 (https://github.com/nst/STTwitter).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!