PLBWEB_EXTRA_HDRS Keyword
10.3A
PLBWEB_EXTRA_HDRS={ string }
This keyword adds one or more HTTP headers lines to every PWS server response. Multiple lines must be separated by the new line character (\n) in the {string}.
Example:
The following example would provide extra security to a web server by denying placement of the output in an iframe and replacing the Server header with a private name.
PLBWEB_EXTRA_HDRS=X-Frame-Options: DENY\nServer: Tester\n
or
PLBWEB_EXTRA_HDRS=X-Frame-Options: DENY\nServer: Tester
These keyword examples add two extra HTTP header lines as follows:
X-Frame-Options: DENY
Server: Tester
See Also: PLBWEBSRV Keywords, Server Command Line
![]() |