Use of HTTP header manager of Jmeter configuration element

1. What is a header?

  A request header in a request

2. When to use it?

  When transmitting cookie token or other information

3. Scene setting?

  Anti-crawler adds information header: When the system thinks your request is a crawler, it will not let you pass

           At this time, Jmeter will simulate the browser to send the request

Anti-crawler adding information header is to modify user-agent

4. User-agent information:

 5. HTTP header manager:

 6. Modify the copied browser value to get it from the browser:

6.1 finally becomes:

 6.2 After running the request at last, view the browser in the result tree to the modified value:

 7. Scope: Divided into local and global

Partial: what is in the request is part of it and takes effect for a single request

 Global: belongs to the thread group and takes effect for all requests

 7.1 When both global and local exist, local > request

  That is: when a request has an HTTP header manager, configure it separately,

          If not, use the global

Guess you like

Origin blog.csdn.net/qq_55482452/article/details/126878789