public int intHeader(final String name,final int defaultValue) throws HttpRequestException {
  closeOutputQuietly();
  return connection.getHeaderFieldInt(name,defaultValue);
}

public int intHeader ( final String name , final int defaultValue ) throws HttpRequestException { closeOutputQuietly ( ) ; return connection . getHeaderFieldInt ( name , defaultValue ) ; }
get an integer header value from the response falling back to the given default value if the header is missing or if parsing fails
