def compareHeaderValues(imgHDU1, imgHDU2, verbose):
    """
    Compare the headers of the two input fits files.

    :param imgHDU1: name of first fits file to compare
    :param imgHDU2: name of second fits file to compare
    :param verbose: Print verbose output to screen?
    :type imgHDU1: astropy.io.fits.hdu.hdulist.HDUList class
    :type imgHDU2: astropy.io.fits.hdu.hdulist.HDUList class
    :type verbose: Boolean
    :return: Logical 'True' if everything is ok, and logical 'False' if dissimilarities are found.
    """
    if verbose:
        print('> > > > > COMPARE HEADERS < < < < <')
    out_list = []
    exclude_list = ['DATE', 'IRAF-TLM']
    for ext_num in range(0, len(imgHDU1)):
        hdr_list1 = list(imgHDU1[ext_num].header.keys())
        hdr_list2 = list(imgHDU2[ext_num].header.keys())
        for hdr_title in hdr_list1:
            if hdr_title != 'HISTORY' and exclude_list.count(hdr_title
                ) == 0 and len(hdr_title) != 0:
                try:
                    hdr_value1 = imgHDU1[ext_num].header[hdr_title]
                except:
                    hdr_value1 = '--MISSING--'
                try:
                    hdr_value2 = imgHDU2[ext_num].header[hdr_title]
                except:
                    hdr_value2 = '--MISSING--'
                if hdr_value1 != hdr_value2:
                    out_list.append('[%s] %s: %s %s' % (str(ext_num),
                        hdr_title, hdr_value1, hdr_value2))
    returnValue = True
    if len(out_list) > 0:
        returnValue = False
        if verbose:
            for item in out_list:
                print(item)
    if returnValue:
        if verbose:
            print('OK')
    if verbose:
        print()
    return returnValue
