fix on curl tools and add possibility to use cookies and http_header options