# Get the body content of a caller/request using php

**URL:** <https://community.dreamfactory.com/t/get-the-body-content-of-a-caller-request-using-php/4760>\
**Category:** Server-Side Scripting\
**Created:** [January 10, 2019, 2:20pm UTC](https://community.dreamfactory.com/t/get-the-body-content-of-a-caller-request-using-php/4760 "2019-01-10T14:20:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fwu](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fwu](https://community.dreamfactory.com/u/fwu)\
**Post date:** [January 10, 2019, 2:20pm UTC](https://community.dreamfactory.com/t/get-the-body-content-of-a-caller-request-using-php/4760/1 "2019-01-10T14:20:03Z")

</div>

hello,

I have a caller/client that will invoke a dreamfactory service using the post protocol. I need to creaate a custom php service. Thus, I need to get in this code the body of the caller (json string) to use it on my own service call inside the php script.

I know I can get the parameters, if any, in this way:

$params = $event[‘request’][‘parameters’];

But how to get the body of the request using php?

thank you!

---

<div class="post-metadata">

**Author:** ![fwu](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fwu](https://community.dreamfactory.com/u/fwu)\
**Post date:** [January 10, 2019, 2:55pm UTC](https://community.dreamfactory.com/t/get-the-body-content-of-a-caller-request-using-php/4760/2 "2019-01-10T14:55:41Z")

</div>

This was what Im looking for:

$event[‘request’][‘content’];

regards
