简体   繁体   中英

How to hide HTTP Header Manager for a image upload post API in jmeter

I create two HTTP request, both post REST API. One of the API content-type is "application/json" for which I have added HTTP Header manager. My other API is for to upload the image. While running both APIs I am getting error as "400 Bad request". If I hide "Http header request" image upload API works but my another API which has json code that fails.

HTTP Header Manager obeys JMeter Scoping Rules so it's applied to all HTTP Request samplers in its scope

  • If you have HTTP Header Manager at the same level as HTTP Request samplers - it will be applied to all of them
  • If you put HTTP Header Manager to be a child of the HTTP Request sampler - it will be applied to this sampler only

like this:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM