HttpSetResponseHeader: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 9: Line 9:


==Required Arguments==
==Required Arguments==
*'''headerName:''' the HTTP header whose value is being set.
*'''headerName:''' the HTTP header whose value is being set. You can find a list of header names [http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html here].
*'''headerValue:''' the new value for the specified header.
*'''headerValue:''' the new value for the specified header.



Revision as of 11:48, 1 November 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. You can find a list of header names here.
  • 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