Rewrite cURL options with flexible framework