Question: I am using https protocol with 3 headers to test API. My test succeeds in postman but I get response code 401 ( unauthorized ) when setting up and running in jmeter. I’m using same value for header parameter in postman and jmeter.

This is my request in jmeter:

```
POST https://url

POST data:
room_id=id

[no cookies]

Request Headers:
Connection: keep-alive

token: token

member_id: id

Content-Type: application/x-www-form-urlencoded

Content-Length: 32

Host: host

User-Agent: Apache-HttpClient/4.2.6 (java 1.5)

```

Answer: 
I will suggest you to use latest version of `Jmeter i.e. 4.0` in which concept of workbench is eliminated and everything is under Test plan now.Solution of above mentioned problem is to add HTTP Cookie Manager with default values. 

For [reference check here.](https://totallytechycom.wordpress.com/2018/03/23/how-to-deal-with-401-unauthorized-in-jmeter-4-0/)
It might be the case when application expects one more header which is "Authorization" (i.e. it is added when browser asks for credentials with popup). So if your API endpoint assumes a form of username/password authentication - provide the credentials via [HTTP Authorization Manager](http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Authorization_Manager). See [How to Use HTTP Basic Authentication in JMeter](https://blazemeter.com/blog/how-use-http-basic-authentication-jmeter) guide for example usage. 

I do not like your Content-Type as well. For API I would rather expect it to be `application/json` or `application/soap+xml`. So double check this bit as well and add relevant Content-Type header via [HTTP Header Manager](http://jmeter.apache.org/usermanual/component_reference.html#HTTP_Header_Manager)