HttpSetResponseHeader: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{HTTP function}} | {{HTTP function}} | ||
This function sets the value for the current HTML page | This function sets the value for the specified HTTP response header of the current HTML page. | ||
==Syntax== | ==Syntax== |
Revision as of 16:06, 27 October 2007
This function sets the value for the specified HTTP response header of the current HTML page.
Syntax
bool httpSetResponseHeader ( string headerName, string headerValue )
Required Arguments
- headerName: the HTTP header whose value is being set.
- headerValue: the new value for the specified header.
Returns
Returns true if the header value was set successfully, false otherwise.
Example
See Also
These functions can only be used from within lua blocks in HTML pages hosted by the server
- httpClear
- httpRequestLogin
- httpSetResponseCode
- httpSetResponseCookie
- httpSetResponseHeader
- httpWrite