# APM Java agent - capture body backend request - Apache HttpClient

**URL:** <https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646>\
**Category:** APM\
**Tags:** java\
**Created:** [September 30, 2019, 1:14pm UTC](https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646 "2019-09-30T13:14:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmihaldinec](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@tmihaldinec](https://discuss.elastic.co/u/tmihaldinec)\
**Post date:** [September 30, 2019, 1:14pm UTC](https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646/1 "2019-09-30T13:14:50Z")

</div>

Hi,  
we have one issues... we have some WildFly application which is doing some B2B operations (SOAP request and response) and behind it is also invoking Apache HttpClient request toward some backend systems and based on response from backend it is building response back to cleint

we completely capture body request from this Wildfly application (request and response) and we see in timeline POST request toward this backend system but when i open this request we dont see POST body request

so question is .. how can we capture Apache HttpClient request which is requested by this WildFly application

thanks in advance  
tomislav

APM Server ver 7.3  
Agent version 1.9.0

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [September 30, 2019, 1:35pm UTC](https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646/2 "2019-09-30T13:35:22Z")

</div>

Currently there is no way to capture the body of outgoing (client) http requests. That's mainly due to concerns in terms of overhead.

---

<div class="post-metadata">

**Author:** ![tmihaldinec](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@tmihaldinec](https://discuss.elastic.co/u/tmihaldinec)\
**Post date:** [September 30, 2019, 1:47pm UTC](https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646/3 "2019-09-30T13:47:57Z")

</div>

Hi Felix,

thanks for this answer..  
is there any plans for enabling this in future?

we are using this in telco and it would be super for trouleshooting issues which we have with backend systems

Thanls  
tomislav

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 21, 2019, 9:48am UTC](https://discuss.elastic.co/t/apm-java-agent-capture-body-backend-request-apache-httpclient/201646/4 "2019-10-21T09:48:11Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
