# Access to http headers from web services response

**URL:** <https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234>\
**Category:** Connecting to Web Services\
**Tags:** community\
**Created:** [September 13, 2016, 6:04pm UTC](https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234 "2016-09-13T18:04:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Gary](https://community.dreamfactory.com/u/Gary)\
**Post date:** [September 13, 2016, 6:04pm UTC](https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234/1 "2016-09-13T18:04:55Z")

</div>

dreamfactory doesn’t seem to pass along the headers from remote web servies. Is there a way I get retrieve it?

---

<div class="post-metadata">

**Author:** ![DFCommunityManager](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dfcommunitymanager/32/887_2.png) [@DFCommunityManager](https://community.dreamfactory.com/u/DFCommunityManager)\
**Post date:** [September 16, 2016, 2:47pm UTC](https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234/2 "2016-09-16T14:47:02Z")

</div>

Hey @Gary,

All headers should be passed on through the DSP to the remote endpoint. Can you provide any steps you’ve taken and more details on your configuration?

Have you checked out some of our docs around this?

- [https://www.dreamfactory.com/features/external-integration](https://www.dreamfactory.com/features/external-integration)
- [https://wiki.dreamfactory.com/DreamFactory/Features/HTTP\_Services](https://wiki.dreamfactory.com/DreamFactory/Features/HTTP_Services)
- [https://wiki.dreamfactory.com/DreamFactory/Features/Scripting](https://wiki.dreamfactory.com/DreamFactory/Features/Scripting)

Thanks,  
@AlexBowen

---

<div class="post-metadata">

**Author:** ![Gary](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Gary](https://community.dreamfactory.com/u/Gary)\
**Post date:** [September 27, 2016, 4:15am UTC](https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234/3 "2016-09-27T04:15:39Z")

</div>

Thanks @AlexBowen,

I should have said that the header I’m expecting is coming from the remote endpoint. I’m trying to login to a Java REST server that upon successful login it’ll set a JSESSIONID to be used for later REST calls.

---

<div class="post-metadata">

**Author:** ![mattschaer](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/mattschaer/32/914_2.png) [@mattschaer](https://community.dreamfactory.com/u/mattschaer)\
**Post date:** [September 29, 2016, 4:55pm UTC](https://community.dreamfactory.com/t/access-to-http-headers-from-web-services-response/3234/4 "2016-09-29T16:55:47Z")

</div>

@Gary Can you try to call the API directly (without DreamFactory in between client and API) using cURL and share the response? (redact any information you consider private like keys or user information). Also, what is being returned when the API is called through DreamFactory?

How are you capturing the request/response headers also?
