curl support added
small change
detect curl