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
,
string me
,
string name
,
string value
,
datetime path
,
string expires
,
integer domain
,
boolean max_age
,
boolean secure
)
httponly
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | httpcookie | |
name | None | string | |
value | None | string | |
path | None | string | |
expires | None | datetime | |
domain | None | string | |
max_age | None | integer | |
secure | .false | boolean | |
httponly | .false | boolean |
Properties
Property | Type | Description |
---|---|---|
domain | string | |
expires | datetime | |
gettext | function | |
httponly | boolean | |
max_age | integer | |
name | string | |
parsetext | function | |
path | string | |
secure | boolean | |
type | type | |
value | string |
Methods
gettext()
Description
Prototype
httpcookievar
.gettext
(
httpcookie
)
me
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | httpcookie |
parsetext()
Description
Prototype
httpcookievar
.parsetext
(
httpcookie
,
string me
)
s
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
me | None | httpcookie | |
s | None | string |