Home

HttpClient

HTTP client

Operations

New

Default constructor

New()

CookiesEnabled

Sets cookie support

method : public : CookiesEnabled(cookies_enabled:Bool) ~ Nil
Parameters
NameTypeDescription
cookies_enabledBooltrue if cookies are enabled, false otherwise

Get

Performs a HTTP GET

method : public : Get(url:String) ~ Vector
Parameters
NameTypeDescription
urlStringURL

Return
TypeDescription
Vectorvector of read strings

Performs a HTTP GET

method : public : Get(url:String, content_type:String) ~ Vector
Parameters
NameTypeDescription
urlStringURL
content_typeStringcontent type

Return
TypeDescription
Vectorvector of read strings

GetAll

Performs a HTTP GET and returns results as a String

method : public : GetAll(url:String) ~ String
Parameters
NameTypeDescription
urlStringURL

Return
TypeDescription
Stringoutput as one string

GetCookies

Gets the cookies

method : public : GetCookies() ~ Vector
Return
TypeDescription
Vectorvector of cookies

GetHeaders

Gets the HTTP headers

method : public : GetHeaders() ~ StringHash
Return
TypeDescription
StringHashHTTP headers

Post

Performs a HTTP POST

method : public : Post(url:String, data:String) ~ Vector
Parameters
NameTypeDescription
urlStringURL
dataStringdata to post

Return
TypeDescription
Vectorvector of read strings

Performs a HTTP POST

method : public : Post(url:String, content_type:String, data:String) ~ Vector
Parameters
NameTypeDescription
urlStringURL
content_typeStringcontent type
dataStringdata to post

Return
TypeDescription
Vectorvector of read strings

SetCookie

Sets a cookie

method : public : SetCookie(cookie:String) ~ Nil
Parameters
NameTypeDescription
cookieStringcookie nane and value