# Change haproxy response body content

**URL:** <https://discourse.haproxy.org/t/change-haproxy-response-body-content/9683>\
**Category:** Lua Scripts\
**Created:** [April 3, 2024, 11:48am UTC](https://discourse.haproxy.org/t/change-haproxy-response-body-content/9683 "2024-04-03T11:48:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandcta123](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@anandcta123](https://discourse.haproxy.org/u/anandcta123)\
**Post date:** [April 3, 2024, 11:48am UTC](https://discourse.haproxy.org/t/change-haproxy-response-body-content/9683/1 "2024-04-03T11:48:13Z")

</div>

I have a scenario, where I have a javascript content which needs to be inserted to the response body. I am using lua script to register an action for the response. But I am not finding any ways to modify the response body. Please let me know, if any resolutions for my problem.

Thanks,  
Anand
