当前位置:网站首页>jmeter关联登录302类型的接口
jmeter关联登录302类型的接口
2022-06-22 14:46:00 【易爻64】
前言
很多的登录都是响应302,即在请求的Response的heard设置一个cookie,然后再重定向到另外一个接口,我们无法直接从接口的响应中直接获取cookie。我们如何获取登录接口设置的cookie用于下一个接口的入参呢? 其实jmeter提供了一种简便的方式HTTP Cookie来实现登录cookie的管理,但是如果一个取样器需要使用多个cookie时,不如自己提取来的方便。
应用场景
登录接口设置cookie,通过正则表达式提取器获取登录的cookie信息后,用户系统信息接口使用;
登录接口

header设置:
Accept-Language zh-CN,zh;q=0.9
Cache-Control max-age=0
Connection keep-alive
Content-Type application/x-www-form-urlencoded
正则表达是提取:
beanshell验证提取结果:
关联cookie

运行结果:
边栏推荐
- Binary search (integer binary)
- Simulation Implementation of string
- 迷宫问题(BFS记录路径)
- Cross border integration, creativity and innovation to help improve the influence of cultural tourism night tour
- 架构师之路,从「存储选型」起步
- 【LeetCode】9、回文数
- Ask if you want to get the start of sqlserver_ Is there a good way for LSN?
- Simulation of vector
- [Huawei cloud to Jian Zhiyuan] the winning list of essay solicitation is released!
- Meet webassembly again
猜你喜欢

84. (cesium chapter) movement of cesium model on terrain

Navicat premium connecting to Oracle database (Graphic tutorial)

Development status of full color LED display

Fast and accurate point cloud registration based on minimizing 3D NDT distance
![[Shangshui Shuo series] day three - VIDEO](/img/42/0911fee2a36f6dda345a571a31acd5.png)
[Shangshui Shuo series] day three - VIDEO

Recommend several AI Intelligent Platforms

快速玩转CI/CD图形化编排

Trust level of discover

C language learning -17- function is passed in as a parameter

C language learning -18-makefile file writing examples and how to generate and call dynamic libraries
随机推荐
Wallys/DR7915-wifi6-MT7915-MT7975-2T2R-support-OpenWRT-802.11AX-supporting-MiniPCIe
Ml notes matrix fundamental, gradient descent
【山大会议】软件性能优化及bug修复
How safe is the new bond
Scala language learning-06-differences between name passing parameters, value passing parameters and function passing parameters
Simulation of vector
普通人怎么在一年内赚到100万?
华为机器学习服务银行卡识别功能,一键实现银行卡识别与绑定
B树和B+树
【山大会议】WebRTC基础之用户媒体的获取
【山大会议】多人视频通话 WebRTC 工具类搭建
数字人民币可以买理财产品了!建行APP在试点地区上线服务专区,实测体验如何?
Quick sort_ sort
Wechat applet avatar pendant production
Recommend several AI Intelligent Platforms
C语言学生成绩排名系统
【山大会议】项目初始化
CVE-2022-0847(提权内核漏洞)
Hello, big guys. Error reporting when using MySQL CDC for the first time
[single chip microcomputer] [make buzzer sound] know the buzzer and let it make the sound you want