def isBinary(rsp):
    """ return true if http response headers 
    indicate binary data """
    if 'Content-Type' not in rsp.headers:
        return False  # assume text
                    
    if rsp.headers['Content-Type'] == "application/octet-stream":
        return True
    else:
        return False