Added support for custom headers to be added to the cURL request