Equinox Online Help - Language Reference - A to Z

Home

WebSetHeader

Applies to
SyntaxWebSetHeader [response header field], value
Action[statement] Sets a value for a header field.
ScopeUsed in method language on an ESP page.
Notes

This statement sets the http servers response headers such as expiry date.

CategoryWeb Server
See Also WebBaseDirectory, WebCurrentPage, WebGetCookies, WebGetHeader, WebOutput, WebOutputFile, WebParameter, WebPostData, WebRedirect, WebSetCookie
Example

This example tells the client that the data is a Jpeg image, which is then sent to the client using the WebOutput statement.

WebSetHeader "content-type", "image/jpeg"

…..

WebOutput MyPicture