SIMPOL Documentation

Chapter 40. httpclientlib

This library provides HTTP 1.0 compliant GET and POST functionality for interacting with web browsers. Results are returned in appropriate objects. Any content type can be retrieved.

httpcookie

Description

Type Tags

None

Object Value

Objects of type httpcookie have no value, and it is an error to try to get or set this value.

httpcookie.new()

Description

Prototype

httpcookie.new ( httpcookie me, string name, string value, string path, datetime expires, string domain, integer max_age, boolean secure, boolean httponly )

Parameters

ParameterDefault valueType nameDescription
meNonehttpcookie
nameNonestring
valueNonestring
pathNonestring
expiresNonedatetime
domainNonestring
max_ageNoneinteger
secure.falseboolean
httponly.falseboolean

Properties

PropertyTypeDescription
domainstring
expiresdatetime
gettextfunction
httponlyboolean
max_ageinteger
namestring
parsetextfunction
pathstring
secureboolean
typetype
valuestring

Methods

gettext()

Description

Prototype

httpcookievar.gettext ( httpcookie me )

Parameters
ParameterDefault valueType nameDescription
meNonehttpcookie

parsetext()

Description

Prototype

httpcookievar.parsetext ( httpcookie me, string s )

Parameters
ParameterDefault valueType nameDescription
meNonehttpcookie
sNonestring