title: java, android, resolve an url, get redirected uri
body: <p>I have an authentication protected url : www.domain.com/alias</p>
  
  <p>that when requested will return another url: www.another.com/resource.mp4 (not protected)</p>
  
  <p>I would like to know if exists a method in Java that will return the real url from a given one.
  Something like: second = resolve(first)</p>
  
  <p>I'm thinking of loading the first and try to read into the response maybe the location attribute, but since I'm not a java guru I would like to know if Java already faces this.</p>