Added support for passing arbitrary options to curl, e.g. cookie values