How do I access response headers and status code (along with cookies which I know how to get) in web in Android app?
In our app, I need to access these data for a custom authentication via web login, similar to OAuth but also need headers etc. This is something I took for granted as I have had no problem in other platforms before, but not Android. For completion, I am doing all these via Xamarin wrappers libraries.
The closest way I got is from this question: Access the http response headers in a WebView? ... but it is 4 years old and the manual intercepting might not work for us as we are only using the URL. I also consider prompting a browser but it seems to give even less control.
Is there a way to achieve this in Android?