# Lua Scripts

**URL:** https://discourse.haproxy.org/c/lua-scripts/6.md?page=1

[Latest](https://discourse.haproxy.org/latest.md) · [Categories](https://discourse.haproxy.org/categories.md)

**Page:** 2

---

## [Lua script dont print/log host or path in tcp mode](https://discourse.haproxy.org/t/lua-script-dont-print-log-host-or-path-in-tcp-mode/746)

<div class="topic-metadata">

**Author:** [@xannax](https://discourse.haproxy.org/u/xannax)\
**Replies:** 0\
**Last updated:** [October 22, 2016, 2:02am UTC](https://discourse.haproxy.org/t/lua-script-dont-print-log-host-or-path-in-tcp-mode/746 "2016-10-22T02:02:19Z")

</div>

Hi, The problem is that when using the tcp mode the Lua script dont log/print the host, path and only the ip is getting logged/printed. If i change the mode to http it prints/output everything, but i need it in tcp mod…

---

## [Lua to change HTTP to HTTPS](https://discourse.haproxy.org/t/lua-to-change-http-to-https/361)

<div class="topic-metadata">

**Author:** [@melaleuca](https://discourse.haproxy.org/u/melaleuca)\
**Replies:** 1\
**Last updated:** [September 10, 2016, 10:58am UTC](https://discourse.haproxy.org/t/lua-to-change-http-to-https/361 "2016-09-10T10:58:54Z")

</div>

Is it possible to modify the HTTP content using lua? Would like to change all http to https on the fly.

---

## [HTTP and TXN classes](https://discourse.haproxy.org/t/http-and-txn-classes/71)

<div class="topic-metadata">

**Author:** [@comdev](https://discourse.haproxy.org/u/comdev)\
**Replies:** 1\
**Last updated:** [April 10, 2016, 9:50am UTC](https://discourse.haproxy.org/t/http-and-txn-classes/71 "2016-04-10T09:50:35Z")

</div>

Dear friends, i need help. I want to use lua scripting. In particular, i'm interested HTTP class. My target is manipulation response. Example: local headers = txn.http:req\_get\_headers() local host = headers\["host"\]\[…

[Previous page](https://discourse.haproxy.org/c/lua-scripts/6.md)
