added 'curl header' func