question

Nima S. avatar image
Nima S. asked ·

How can i Capture request header cookie with AppMon?

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

purepath7.2sensors
requestheader.jpg (28.5 KiB)
headerme.jpg (79.9 KiB)
headerbt.jpg (79.3 KiB)
servlet.jpg (28.1 KiB)
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Mevlüt S. avatar image
Mevlüt S. answered ·

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


Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Sebastian K. avatar image
Sebastian K. answered ·

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

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

Sebastian

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.