I am trying to capture a cookie value passed in the header of a particular HTTP request and I am not able to do so. There are two cookie being passed. One of them is the SESSION ID that is being carried from the login and there is additional cookie that is required to authenticate a report I am trying to open. I have tried all functions to capture the value of that cookie, but somehow its looking for the SESSION ID cookie that is being captured already. Please tell me how to do this.
Here is the header
POST /nutrition-reports/frameset HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Accept-Encoding: gzip, deflate
and here is the code I am trying to capture and insert just before the request
I need to capture this cookie "Cookie: JSESSIONID=E3E86B2BDCA9B0CDF197CC79EB702E77.cguschd2728vm"