Added support for headers options parameter in order to be able to send
json as POST payload