title: how to get new URL in a http 302 redirection in Java?
body: <p>I came across a HTTP 302 page that say <code>Location: //-now-playing.html</code> (which looks strange because usually it is the full url, i.e. <code>Location: <a href="http://www.somewhere.else" rel="nofollow">http://www.somewhere.else</a></code>) and that causes my <code>HttpURLConnection con</code> with <code>con.setFollowRedirects(true)</code> to fail. Yet, my browser does not fail with this instruction. How can I get the <strong>true</strong> URL in this case?</p>
  
  <p>You can see the full request and response in this case by trying this url <a href="http://cinemaclock.com/showtimes/ont/Toronto/43844/The_Trip" rel="nofollow">http://cinemaclock.com/showtimes/ont/Toronto/43844/The_Trip</a> in www.web-sniffer.net . Thank you.</p>
  
  <p>EDIT: Thank you all. I found out this is a case of bad URL. False alarm, but thank you all.</p>