Use curl extra options and allow to override the default ones

Fix for actually using curl extra options