Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   AddHTTPHeader
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
Applications
Module development
Core functions
 
Configuration
Database access
Managing users, units and privileges
Task scheduler
WebHare mailer
WebHare webserver
AddHTTPHeader
  Add a HTTP header
 
Library module::system/webserver.whlib
 
Syntax PUBLIC MACRO AddHTTPHeader (STRING header,STRING data,BOOLEAN always_add)
 
Description Add a HTTP header to this response. The caller is responsible for not violating
the HTTP spec
 
Parameters
header Name of the header to add
data Data to add inside the header
always_add If true, add this header line. If false, replace the header line if it was already set
 
Example
//Replace the content type of this document with 'plain text'
AddHTTPHeader("Content-Type","text/plain",FALSE);

//Add an X-Trace header, supplementing any existing headers
AddHTTPHeader("X-Trace", "My Harescript file",TRUE);
 
In library 'webserver'
AddHTTPHeader
CloseWebSession
CreateWebSession
GetAllWebHeaders
GetAllWebVariables
GetClientLocalIp
GetClientLocalPort
GetClientRemoteIp
GetClientRemotePort
GetClientUsername
GetClientWebserver
GetRequestBody
GetRequestMethod
GetRequestURL
GetServerBoottime
GetWebBlobVariable
GetWebCookie
GetWebHeader
GetWebSessionData
GetWebVariable
GetWebVariableFilename
GetWebVariableLength
IncludeCGIScript
IsRequestPost
Redirect
SendWebFile
SetWebCookie
StoreWebSessionData
 
Top To top of page