Biferno 1.7 Tabasoft.it

Application: ItaliaScuola Back-Office3
Reference
Admin | Edit | Reference | Cache | Logs
Click on a class name to see the description of that particular class:

Predefined Classes

ansi
array
biferno
boolean
cacheItem
char
classInfo
client
collection
curApp
curFile
curScript
db
double
error
file
folder
header
httpPage
imageUtils
int
long
memberInfo
multipart
object
ref
regexp
request
search
serverInfo
smtp
stackItem
string
time
unix
unsigned
 

Application Classes

Banner
BrowserBar
Ctrl_Form
FCKeditor
Form
GridChartGraph
Histogram
LocalDate
Result
condb
cookie
folderExt
headerExt
httpExt
mysqlFulltext
objHtml
requestExt
tableExport
utils
 

Functions

Functions

header

Methods

Properties

Constants

Errors

AddField
GetField
RemoveField
SetField
ErrHeaderFieldNotFound
ErrInvalidHeader

Class

HTTP header manipulation

Description:

The header Biferno class describes the header (request or response + header) of the HTTP protocol. Using the methods of this class the different fields in the HTTP header can be read and manipulated.

SeeAlso:

httpPage class

Note:

Every time a client requests a file with “.bfr” extension (i.e. a Biferno script), Biferno automatically creates two global variables of the httpPage class called pageIn and pageOut. The pageIn variable contains the client request in the HTTP protocol format, while the pageOut variable contains the server response.

The header of the client request and of the server response can be manipulated acting on the property head of these two variables

Implementation:
C
 

Constructor
void header(string headerString)

Initializes an header class instance

Description:

To instantiate a variable of the header class the class constructor is called supplying a string containing a request or response and an HTTP header (which can be empty), separated by a new line character combination (CR+LF). An example is:

h = header("GET index.bfr HTTP/1.1")

or

h = header("HTTP/1.0 200 OK\r\nContent-type: text/html")

Parameters:
headerString

a string containing a request or response and an HTTP header (which can be empty), separated by a new line character combination (CR+LF)

Returns:

the new header object

See also:

httpPage class

Implementation:
C