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: 
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)
I think you should revisit your script and check that you're having HTTP Header Manager in each request with the Authorization token. Also, you can change the content type to application JSON as this is REST.