Added curl optins handling