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

Extracting Jboss Server Name from Cookie

ajdimanuel
Inactive

Hi,

I am handling to extract a Jboss Server Name from Cookie and I am getting some issues. This is the cookie:

pf-ticket-id=f37fd610-c7cb-11e8-99d5-87b738bfa012; pf-api-key=LjooWemBNy; _qubitTracker=g9nq815r5wo-0jedvqidf-b83085j; acceptCookies=true; LPVID=ZkMDIwOWM5ZGY3YTM5N2Ey; __duetto=11324055347698; _ga=GA1.2.2.179550756.1497380288.1533039834-1183137229.1533039834; utag_ulog=_ts:1533040630982$_vi:0164f05790ff000175105435946103072002e06a00bd0$_vr:https%3A%2F%2Fsecurepayment.nh-hotels.com%2Fcheckout-flexible%3FcbURL%3Dhttps%3A%2F%2F%2Fbooking%2Fstep2-personal-data%2Fpci%2Findex.html%26sessionId%3DpP7mgG0M9QHgWP240xVgcQ%3D%3D%26bookId%3DHZIILUL4%26lang%3Dcom%26source%3DNHWEB$_fs:1533040627967$_cs:1533040627967$_sc:1$_evc:1$_ec:2; JSESSIONID=sbBP0N-XiBM7JFl8nTAf5xWu.jbpro04_slave; USER_CT_COUNTRYCODE=FI; USER_CT_CONTINENT=EU;

The thing is that I want the name "jbpro04" and I don't find how to get it.

Please, could you help me?

Alberto.


7 REPLIES 7

mathieu_chatte1
Advisor

Hello,

Create a measure "Web Request - Cookie Value".

Configure it like in this screen :

Don't forget the transformation regex

Then, add this measure in Split Results of your BT.

Regards,

Mathieu


ajdimanuel
Inactive

Hi,

my question is the Transformation regex syntax for my cookie. I'm making test but I don't find the right Transformation regex .

Thanks.

Alberto.


Hello @Alberto D.

I guess you can use use the Web Request - Header Value and then use the below as transformation regex which will match the "JSESSIONID=sbBP0N-XiBM7JFl8nTAf5xWu.jbpro04_slave" value.

 JSESSIONID(?:\d)*=([^;]*)

Regards,

Babar


ajdimanuel
Inactive

Hi,

that's what I was getting "sbBP0N-XiBM7JFl8nTAf5xWu.jbpro04_slave", the thing is that I just need "jbpro04_slave"

Alberto.


Hello @Alberto D.

Try with the below group as pattern.

(jbpro\d+\D\w+)

Regards,

Babar


ajdimanuel
Inactive

it works fine.

Thank you very much Babar.

Alberto.


Hello @Alberto D.

You are most welcome.

Regards,

Babar