public long dateHeader(final String name,final long defaultValue) throws HttpRequestException {
  closeOutputQuietly();
  return connection.getHeaderFieldDate(name,defaultValue);
}

public long dateHeader ( final String name , final long defaultValue ) throws HttpRequestException { closeOutputQuietly ( ) ; return connection . getHeaderFieldDate ( name , defaultValue ) ; }
get a date header from the response falling back to returning the given default value if the header is missing or parsing fails
