HttpSetResponseHeader: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{HTTP function}} This function sets the value for the current HTML page's response header. ==Syntax== <syntaxhighlight lang="lua"> bool httpSetResponseHeader ( string headerName, string headerV...)
(No difference)

Revision as of 16:02, 27 October 2007

This function sets the value for the current HTML page's response header.

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