Custom HTTP protocol response?

Martin Kjær Jørgensen me at lagy.org
Mon Jun 10 08:56:05 UTC 2024


Hi,

I'm experimenting with nginx to have it respond in an incompatible wait to a
HTTP client. A normal response would be like the usual:

HTTP/1.1 200 OK
Content-Type: text/plain
...

I would like to modify the HTTP response to this instead, using nginx and
perhaps some lua scripting if needed:

UNKNOWN 200 OK
Content-Type: text/plain
...

Is this possible without hacking nginx sources or manipulative intermediate
proxies?

/Martin


More information about the nginx mailing list