Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jmeter grabs the Set-Cookie value from the previous request using regular expressions and applies it in the next request

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

For problems encountered in work, the login request contains a parameter Set-Cookie in the returned Response Headers. You need to grab this parameter and apply it to the next request, as shown in the following figure:

Grab the value of Set-Cookie through a regular expression, which needs to be selected as an "information header" because the value exists in Response Headers:

When used in other requests, you need to add a "HTTP header manager" to reference the captured values above, as shown in the following figure:

If the request is sent again, there is also a Set-Cookie value in Response Headers, and the login timeout will not be returned.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report