close
815
I’ve used AFNetworking every-time there is a need to fetch data from web. I’ve been using AFHTTPSessionManager for this task and which worked great till now when there was the requirement to send a token value I got after successful login and pass it with every other request.

So I got the token successfully by using AFHTTPSessionManager but to pass it in headers it was not working. So I found this method of doing it and it works.


 

Tags : afnetworkingafnetworking 3.0
Chaudhary Talha

The author Chaudhary Talha

I'm an iOS developer by profession and UI/UX designer by passion. All my tutorials are based on my personal experiences and whenever I learn something new I share it with the world.