AddHTTPHeader

Family: HTTP · One form

What it does

AddHTTPHeader adds Header on a HTTP object. It takes iHTTP (an integer), headerName (a string) and headerValue (a string), and returns nothing.

Syntax

AddHTTPHeader(iHTTP integer, headerName string, headerValue string)

Parameters

NameType
iHTTPinteger
headerNamestring
headerValuestring

Every form returns

nothing

Example · generated

AddHTTPHeader(1, "player", "value")DO  Sync()LOOP

AddHTTPHeader is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

21 commands in HTTP