# V8JS: How to get response headers from platform.api.post call?

**URL:** <https://community.dreamfactory.com/t/v8js-how-to-get-response-headers-from-platform-api-post-call/3725>\
**Category:** Server-Side Scripting\
**Created:** [March 21, 2017, 11:52pm UTC](https://community.dreamfactory.com/t/v8js-how-to-get-response-headers-from-platform-api-post-call/3725 "2017-03-21T23:52:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lovenalube](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/lovenalube/32/777_2.png) [@lovenalube](https://community.dreamfactory.com/u/lovenalube)\
**Post date:** [March 21, 2017, 11:52pm UTC](https://community.dreamfactory.com/t/v8js-how-to-get-response-headers-from-platform-api-post-call/3725/1 "2017-03-21T23:52:28Z")

</div>

Hello

I have a line like this in a server side V8js post process script:

```
var result = platform.api.post("http://example.com/my_api", JSON.stringify({"name":"test"}), options);

```

How can I get the response headers? Trying to do _var\_dump(result)_ does not give the response headers.

---

<div class="post-metadata">

**Author:** ![Joshua\_Vannatter](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/joshua_vannatter/32/875_2.png) [@Joshua\_Vannatter](https://community.dreamfactory.com/u/Joshua_Vannatter)\
**Post date:** [April 27, 2017, 2:13am UTC](https://community.dreamfactory.com/t/v8js-how-to-get-response-headers-from-platform-api-post-call/3725/2 "2017-04-27T02:13:15Z")

</div>

If you’re looking for just the response that comes from that post, then you can use:

```
event.response.content = {"result": result};
```

---

<div class="post-metadata">

**Author:** ![lovenalube](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/lovenalube/32/777_2.png) [@lovenalube](https://community.dreamfactory.com/u/lovenalube)\
**Post date:** [May 4, 2017, 11:41am UTC](https://community.dreamfactory.com/t/v8js-how-to-get-response-headers-from-platform-api-post-call/3725/3 "2017-05-04T11:41:02Z")

</div>

Hi Joshua

I am actually looking for the response **headers**. Those do not seem to show up. Any thoughts?

Thanks
