Flexible wrapper class for the PHP cURL extension