Adding Custom Headers

Add custom headers to a request message. This is a name/value pair that defines the operating parameters of an HTTP transaction. Custom headers are optional while sending a data request to the back-end.

The following code illustrates how to add custom headers to the request message.
Map<String,String>cookie = null;
cookie.put("KKNBJDNADU23123SHSFH", "cookie");
getRequest.setHeaders(cookie);