Setting an HTTP response header

Use the http.setResponseHeader() function to set the value of a response header. You can use this function in both request and response rules:

# Mask the 'Server' response header
http.setResponseHeader( "Server", "Unknown web server" );

# Work round browser/proxy bugs and prevent caching
http.setResponseHeader( "Pragma", "no-cache" );
http.setResponseHeader( "Cache-Control", "no-cache" );
http.setResponseHeader( "Expires", "0" );

You can also delete a response header with the http.removeResponseHeader() function.

Owen Garrett [Zeus Dev Team] 01 July 2005  Permalink  
Leave a comment ...
Your email address will not be displayed.
Your URL will be displayed.
This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)
Download Free ZXTM Desktop Edition

Recent Articles

Other Resources



www.zeus.com