guys, when I accidentally looked at the source code, I had the following question:
there is a getHeaderFieldDate method in the java.net.URLConnection class, as follows:
@SuppressWarnings("deprecation")
public long getHeaderFieldDate(String name, long Default) {
String value = getHeaderField(name);
try {
return Date.parse(value);
} catch (Exception e) { }
return Default;
}
A getHeaderField method is called in this method, as follows:
public String getHeaderField(String name) {
return null;
}
Why does the getHeaderField method always return null,? Thank you!