Allow for greater flexibility in setting curl parameters by passing in an array.