rejetto forum

Author Topic: Changing HTTP response header  (Read 5465 times)

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1986
    • View Profile
Re: Changing HTTP response header
« on: May 25, 2016, 08:32:29 PM »
How to change the HTTP response header "Server" (or any other string in the header) using Macros?

After unsuccessfully sought an outcome by changing the Delphi code, it appeared that the solution was simple.
anywhere in the template, it is possible to add a header using a macro as follows model

{.add header|A: B, C, D.}

an example give Cache-Control: no-cache, no-store, must-revalidate, max-age=-1

if a previous header exist as  A: F then the final header become A: F, B, C, D

using macro {.add header|Server: APACHE.} give as result Server: HFS 2.3h, APACHE

if you want to remove this HFS + version that annoy you, this is not feasible using a macro

go to menu > other options, and uncheck "Send HFS Identifier"

 8) 8)

Follow members gave a thank to your post:

Thank-o-Matic 3.0 By Adk Team