# Mac: not possible to add Content-Length header to pm.sendRequest

**URL:** <https://community.postman.com/t/mac-not-possible-to-add-content-length-header-to-pm-sendrequest/25766>\
**Category:** Help Hub\
**Tags:** tests, pmsendrequest, mac\
**Created:** [July 14, 2021, 4:17pm UTC](https://community.postman.com/t/mac-not-possible-to-add-content-length-header-to-pm-sendrequest/25766 "2021-07-14T16:17:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DefaultPlayer](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DefaultPlayer](https://community.postman.com/u/DefaultPlayer)\
**Post date:** [July 14, 2021, 4:17pm UTC](https://community.postman.com/t/mac-not-possible-to-add-content-length-header-to-pm-sendrequest/25766/1 "2021-07-14T16:17:30Z")

</div>

Hello,

I am a mac user and I have request in postman (version 8.8.0 (8.8.0)) with tests in which I am repetitively sending the request. The problem is that the content-length header is not added at all. Here is how the code looks:  
pm.sendRequest({  
url: “https://\<my\_url\>”,  
method: ‘GET’,  
header: {  
‘Content-Type’: ‘application/json’,  
‘Content-Length’: 348  
},  
body: {}  
}, function (err, res) {  
//callback  
});

Here is what I actually get in the request headers:  
Content-Type: application/json

User-Agent: PostmanRuntime/7.28.2

Accept: _/_

Postman-Token: 142ff383-904c-49f2-a577-9fb7d9a44e6b

Host: \<my\_host\>

Accept-Encoding: gzip, deflate, br

---

<div class="post-metadata">

**Author:** ![DefaultPlayer](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@DefaultPlayer](https://community.postman.com/u/DefaultPlayer)\
**Post date:** [July 14, 2021, 4:44pm UTC](https://community.postman.com/t/mac-not-possible-to-add-content-length-header-to-pm-sendrequest/25766/2 "2021-07-14T16:44:38Z")

</div>

Okay, I actually sorted it out. Apparently, Postman will set content-length dynamically if you switch from GET to POST. Seems, it’s designed to not allow content-length header and body to be set for GET requests (which does make sense for sure)

---

<div class="post-metadata">

**Author:** ![tron-ar](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tron-ar](https://community.postman.com/u/tron-ar)\
**Post date:** [March 9, 2024, 6:54pm UTC](https://community.postman.com/t/mac-not-possible-to-add-content-length-header-to-pm-sendrequest/25766/3 "2024-03-09T18:54:00Z")

</div>

Sort off, because a GET with a long Authorization ends up being truncated in python because of lack of content length ? Convoluted ? You bet…
