How to intercept HTTP requests made by a 3rd party library on Android?
<p>For my project I have to use a 3rd party Java library which makes some HTTP requests to a well known server. I need to add my own header to those requests and wonder how I can realize it?</p>

<p>An HttpRequestInterceptor seems to be the answer, but how can I 'register' this one globally, so that the 3rd party library would use it? Is it perhaps possible using reflection?</p>

<p>I do not want to use a proxy app. Just my application should intercept and modify the HTTP requests of that 3rd party library.</p>

<p>Thanks for your help,
Michael</p>
