302 redirects provide the new location as the Location: header. You can make the HttpURLConnection class not follow redirects by: ...
Lee mas