cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

How can i Capture request header cookie with AppMon?

nima_samsami_ex
Participant

I want to Capture a Request Cookie. I tried the solutions i found in forum but it still doesn't work.

I just want to measure the count of hbMarketCookie

It couldn't capture any headers.

Greets,

Nima

 

2 REPLIES 2

sebastian_kryst
DynaMight Leader
DynaMight Leader

You have to capture whole cookie header and extract value via regex:

https://answers.dynatrace.com/questions/217162/how...

Sebastian


mevlut_soner
Contributor

Hello Nima ,

  • The first thing you need to do that is define request header value in servlet/webserver. Go to System Profile Settings > Web Server > Sensor Configuration > click WebServer/Servlet edit > Define request header here (Source: Request Header, HTTP Header and parameter: Cookie) then click save.

  • After that, you should create a Request Header measure(not response header, if you want to capture request header.). Header field: Cookie, Value: Begins with hbMarketCookie, and don't forget to set num value: 1.0 !

  • Finally, you should create a BT and add the measure in it. (İf you select user action instead of server-side purepath, you can calculate the count of user action) Then no splitting and calculate result value.

Best Regards.

Mevlüt