added saveheaders

**Description**

I've added a new parameter called saveHeaders the parameter is used for HTTP request (AJAX) as HTTP headers.

**Why is this functionality useful?**

1. Possibility to implement authentication
2. Additional meta information about the content can be added to the request