The getHeaderField(String name) method returns the string value of a named header field.
getHeaderField(String name)
Names are case-insensitive.
If the requested field is not present, null is returned.
null
For example,
String lm = uc.getHeaderField("Last-modified");