We are developing an android app which interacts with MVC based back end server, the communication between app and server implemented using HttpUrlConnection (get and post methods) is there a way where i can intercept all these request and add extra headers required for authentication at my back end ?
Asked
Active
Viewed 62 times
0
-
1Have you tried using OkHttp? I suggest avoid every other implementation for http requests. – Nikola Despotoski Apr 09 '15 at 10:49
1 Answers
0
You will need a higher level abstraction than HttpUrlConnection
to have this kind of functionality. You can either implement your own wrapper for it, or use an existing REST client library (REST API Client Library for Android).