# Get RequestBody content

**URL:** https://community.gatling.io/t/get-requestbody-content/6092
**Category:** Gatling (Open-Source)
**Created:** [May 12, 2021, 8:15am UTC](https://community.gatling.io/t/get-requestbody-content/6092 "2021-05-12T08:15:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Adharsh\_V\_S](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@Adharsh\_V\_S](https://community.gatling.io/u/Adharsh_V_S)
#### Post date: [May 12, 2021, 8:15am UTC](https://community.gatling.io/t/get-requestbody-content/6092/1 "2021-05-12T08:15:06Z")

</div>

Hi,

I’m using a SignatureCalculator function to create Authorization headers, but I’m having trouble getting the content of the RequestBody for that.

_request.getBody.toString_ returns something like this:

_StringChunksRequestBody{contentType=‘application/json’, charset=UTF-8, content={_  
_“field”:“value”_  
_}}_

There is no _request.getBody.getContent_ function, only _request.getBody.getContentType_.  
Is there an easy way to extract the content only?

Any help would be deeply appreciated.

Thanks,  
Adharsh

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [May 12, 2021, 4:47pm UTC](https://community.gatling.io/t/get-requestbody-content/6092/2 "2021-05-12T16:47:20Z")

</div>

request.getBody.getBytes
