set_header

The set_header method adds a header to the HTTP request.

Syntax

set_header( name, value )

Arguments

Argument Description
name (string) The name of the HTTP header to add to the request.
value (string or nil) The value of the HTTP header to add to the request.

Example

request:set_header("X-EXAMPLE", "Example")

_HP_HTML5_bannerTitle.htm