Hi all,
can someone kindly suggest what I'm doing wrong here?
I'm trying to get the header location for a certain URL using java
here is my code:
URLConnection conn = url.openConnection();
String location = conn.getHeaderField("Location");
it's strange since I know for sure the URL i'm refering to return a Location header and using methods like getContentType() or getContentLength() works perfectly
your advices are much appreciated as always :)
Thanks