SIMPOL Documentation

httprequest

Description

Type Tags

None

Object Value

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

httprequest.new()

Description

Prototype

httprequest.new ( httprequest me, string useragent, string content_type, string protocol )

Parameters

ParameterDefault valueType nameDescription
meNonehttprequest
useragentsimpol-httpclientlib/1.0 (http://www.simpol.com)string
content_typeapplication/x-www-form-urlencodedstring
protocol1.0string

Properties

PropertyTypeDescription
_type(*)
__type(*)
entitybodyblob
entityheaderhttpentityheader
generalheaderhttpgeneralheader
getrequestblobfunction
protocolstring
requestheaderhttprequestheader
requesttypestring
setcookiefunction
settunnelurlfunction
tunnelurlURL
typetype
urlURL

Methods

getrequestblob()

Description

Prototype

httprequestvar.getrequestblob ( httprequest me )

Parameters
ParameterDefault valueType nameDescription
meNonehttprequest

setcookie()

Description

Prototype

httprequestvar.setcookie ( httprequest me, string name, string value, string path, datetime expires )

Parameters
ParameterDefault valueType nameDescription
meNonehttprequest
nameNonestring
valueNonestring
pathNonestring
expiresNonedatetime

settunnelurl()

Description

Prototype

httprequestvar.settunnelurl ( httprequest me, URL tunnelurl )

Parameters
ParameterDefault valueType nameDescription
meNonehttprequest
tunnelurlNoneURL