Learning jmeter pressure measuring 6-HTTP Cookie manager

Foreword

Most requested web site has cookies, jmeter the HTTP Cookie Manager can well manage cookies.
Jmeter5.1 version I used, plus a front direct HTTP Cookie Manager into the request, it can automatically manage the cookies.
Some see the online tutorials say will make jmeter.property file CookieManager.save.cookies set to true, I do not set here jmeter5.1 version also successful.

Scene Case

When the login is successful, the server will return two token

Because there are 302 redirect to / admin / login page after the request is successful, the page redirects, cookies need to bring to a successful visit to the front of the

But on a https://www.cnblogs.com/yoyoketang/p/11962553.html login request is not to bring the cookies

HTTP Cookie Manager

jmeter start inside the cookie manager is very simple, just add a request in front of HTTP Cookie管理器it. Do not need to extract cookies, go to add to cookie manager.
HTTP Cookie管理器After adding cookies are automatically saved every time you request, subsequent requests will be put on the front of the cookies, just like you normally access the browser is the same.

After successfully added with a default configuration on it

302 redirect

See the results, because the log-in request is redirected 302, so the results have two requests result, you can expand the view.
The first request to obtain the cookies 302 to redirect / admin / page

The second request is automatically put on hold in front of the cookies can view the second request requesting body

View the results of the request was successful

Guess you like

Origin www.cnblogs.com/yoyoketang/p/11963342.html