While accessing Umbrella Reporting API(reports.api.umbrella.com), it is redirecting to another hostname(api.us.reports.umbrella.com) without passing the required bearer token in the header.
It is the behaviour of all HttpClients implementation.
Hence, while accessing the API, it is returning as "401 Unauthorised".
In Postman , if the option "Follow Authorisation Header" is selected, then we are getting successful response.
How do we acheive it through code. Tried the exact java sample available in Github. it is failing.