Navigation:  thinBasic Modules > CGI >

CGI_Header

Previous pageReturn to chapter overviewNext page

 

Description

 

Writes a string into the HTTP header.

 

Syntax

 

n = CGI_Header(sText)

 

Returns

 

Returns a Number

Numbers of characters written to the HTTP header or zero if the function fails..

 

Parameters

 

Name

Type

Optional

Meaning

sText

String

No

String to put into the HTTP header

 

Remarks

 

If the output of CGI_Write is bufferized also the Header's output is bufferized.

 

Restrictions

 

See also

 

Examples

 

CGI_Header("WWW-Authenticate: Negotiate")

CGI_header("Cache-Control: public")