fix curl check
remove warning on header fct