v2026.4.1
All Bundles

HttpsClient

HTTPS client

html := HttpsClient->QuickGet(Web.HTTP.Url->New("https://www.nasa.gov")->ToString();
if(html <> Nil) {
   html->PrintLine();
};

Operations

AddHeader

Adds a HTTPS request header

method : public : AddHeader(name:String, value:String) ~ Nil

Parameters

NameTypeDescription
nameStringheader name
valueStringheader value

Delete

Performs a HTTPS DELETE

method : public : Delete(url:Web.HTTP.Url, content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type

Return

TypeDescription
Responsestring read

EnableCookies

Sets cookie support

method : public : EnableCookies(cookies_enabled:Bool) ~ Nil

Parameters

NameTypeDescription
cookies_enabledBooltrue if cookies are enabled, false otherwise

Get

Performs a HTTPS GET

method : public : Get(url:Web.HTTP.Url) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL

Return

TypeDescription
Responsestring read

Get

Performs a HTTPS GET

method : public : Get(url:Web.HTTP.Url, content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type

Return

TypeDescription
Responsestring read

Get

Performs a HTTPS GET

method : public : Get(url:Web.HTTP.Url, content_type:String, ) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type

Return

TypeDescription
Responsestring read

GetCookie

Get a cookie

method : public : GetCookie(name:String) ~ Cookie

Parameters

NameTypeDescription
nameStringcookie name

Return

TypeDescription
Cookiefound cookie, Nil otherwise

GetCookies

Gets the cookies

method : public : GetCookies() ~ Vector<Cookie>

Return

TypeDescription
Vector<Cookie>vector of cookies

GetIssuer

Gets the socket's X.509 certificate issuer name

method : public : GetIssuer() ~ String

Return

TypeDescription
Stringcertificate issuer name

GetRequestHeaders

Gets the HTTPS request headers

method : public : GetRequestHeaders() ~ Hash<String,String>

Return

TypeDescription
Hash<String,String>HTTPS request headers

GetResponseHeaders

Gets the HTTPS response headers

method : public : GetResponseHeaders() ~ Hash<String,String>

Return

TypeDescription
Hash<String,String>HTTPS response headers

GetSubject

Gets the socket's X.509 certificate subject name

method : public : GetSubject() ~ String

Return

TypeDescription
Stringcertificate subject name

HasCookie

Checks for a cookie

method : public : HasCookie(name:String) ~ Bool

Parameters

NameTypeDescription
nameStringcookie name

Return

TypeDescription
Booltrue if found cookie, false otherwise

New

Default constructor

New(cookies_enabled:Bool)

Parameters

NameTypeDescription
cookies_enabledBooltrue if cookies are enabled, false otherwise

Post

Performs a HTTPS POST

method : public : Post(url:Web.HTTP.Url, data:Byte[], content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type

Return

TypeDescription
Responsestring read

Post

Performs a HTTPS POST

method : public : Post(url:Web.HTTP.Url, data:Byte[], content_type:String, pem:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type
pemStringthe Privacy Enhanced Mail file

Return

TypeDescription
Responsestring read

Post

Performs a HTTPS POST

method : public : Post(url:Web.HTTP.Url, data:Byte[]) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper

Return

TypeDescription
Responsestring read

Put

Performs a HTTPS PUT

method : public : Put(url:Web.HTTP.Url, data:Byte[], content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type

Return

TypeDescription
Responsestring read

Put

Performs a HTTPS PUT

method : public : Put(url:Web.HTTP.Url, data:Byte[], content_type:String, pem:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type
pemStringthe Privacy Enhanced Mail file

Return

TypeDescription
Responsestring read

Put

Performs a HTTPS PUT

method : public : Put(url:Web.HTTP.Url, data:Byte[]) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper

Return

TypeDescription
Responsestring read

QuickDelete

Performs a HTTPS DELETE and returns results as a String

function : QuickDelete(url:Web.HTTP.Url) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL

Return

TypeDescription
Responseoutput buffer

QuickDelete

Performs a HTTPS DELETE and returns results as a String

function : QuickDelete(url:Web.HTTP.Url, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
headersMap<String,String>key/value headers

Return

TypeDescription
Responseoutput buffer

QuickDelete

Performs a HTTPS DELETE and returns results as a String

function : QuickDelete(url:Web.HTTP.Url, content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type

Return

TypeDescription
Responseoutput buffer

QuickDelete

Performs a HTTPS DELETE and returns results as a String

function : QuickDelete(url:Web.HTTP.Url, content_type:String, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type
headersMap<String,String>key/value headers

Return

TypeDescription
Responseoutput buffer

QuickDelete

Performs a HTTPS DELETE and returns results as a String

function : QuickDelete(url:Web.HTTP.Url, content_type:String, headers:Map<String,String>, pem:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type
headersMap<String,String>key/value headers
pemStringthe Privacy Enhanced Mail file

Return

TypeDescription
Responseoutput buffer

QuickGet

Performs a HTTPS GET and returns results as a String

function : QuickGet(url:Web.HTTP.Url) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL

Return

TypeDescription
Responseoutput buffer

QuickGet

Performs a HTTPS GET and returns results as a String

function : QuickGet(url:Web.HTTP.Url, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
headersMap<String,String>key/value headers

Return

TypeDescription
Responseoutput buffer

QuickGet

Performs a HTTPS GET and returns results as a String

function : QuickGet(url:Web.HTTP.Url, content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type

Return

TypeDescription
Responseoutput buffer

QuickGet

Performs a HTTPS GET and returns results as a String

function : QuickGet(url:Web.HTTP.Url, content_type:String, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type
headersMap<String,String>key/value headers

Return

TypeDescription
Responseoutput buffer

QuickGet

Performs a HTTPS GET and returns results as a String

function : QuickGet(url:Web.HTTP.Url, content_type:String, headers:Map<String,String>, pem:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
content_typeStringcontent type
headersMap<String,String>key/value headers
pemStringthe Privacy Enhanced Mail file

Return

TypeDescription
Responseoutput buffer

QuickPost

Performs a HTTPS POST

function : QuickPost(url:Web.HTTP.Url, data:Byte[]) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper

Return

TypeDescription
Responseread strings

QuickPost

Performs a HTTPS POST

function : QuickPost(url:Web.HTTP.Url, data:Byte[], content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type

Return

TypeDescription
Responseread strings

QuickPost

Performs a HTTPS POST

function : QuickPost(url:Web.HTTP.Url, data:Byte[], content_type:String, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type
headersMap<String,String>key/value headers

Return

TypeDescription
Responseread strings

QuickPut

Performs a HTTP POST

function : QuickPut(url:Web.HTTP.Url, data:Byte[]) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper

Return

TypeDescription
Responseread strings

QuickPut

Performs a HTTPS POST

function : QuickPut(url:Web.HTTP.Url, data:Byte[], content_type:String) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type

Return

TypeDescription
Responseread strings

QuickPut

Performs a HTTP POST

function : QuickPut(url:Web.HTTP.Url, data:Byte[], content_type:String, headers:Map<String,String>) ~ Web.HTTP.Response

Parameters

NameTypeDescription
urlUrlURL
dataBytedata to oper
content_typeStringcontent type
headersMap<String,String>key/value headers

Return

TypeDescription
Responseread strings

RemoveHeader

Removes a HTTPS request header

method : public : RemoveHeader(name:String) ~ Nil

Parameters

NameTypeDescription
nameStringheader name

SetCookie

Sets a cookie

method : public : SetCookie(cookie:Cookie) ~ Nil

Parameters

NameTypeDescription
cookieCookiecookie

SetMaxRedirects

Sets the maximum number of redirects to follow (default 10)

method : public : SetMaxRedirects(max:Int) ~ Nil

Parameters

NameTypeDescription
maxIntmaximum redirects

SetRetry

Sets retry behavior for transient errors (429, 503)

method : public : SetRetry(max_retries:Int, delay_ms:Int) ~ Nil

Parameters

NameTypeDescription
max_retriesIntmaximum retry attempts (default 3, 0 to disable)
delay_msIntinitial delay between retries in milliseconds (default 1000, doubles each retry)

StreamPost

Performs an HTTPS POST and returns an SSE stream for reading events. Used for streaming responses from LLM APIs.

method : public : StreamPost(url:Web.HTTP.Url, data:Byte[], content_type:String) ~ SSEStream

Parameters

NameTypeDescription
urlUrlURL
dataByterequest body
content_typeStringcontent type

Return

TypeDescription
SSEStreamSSE stream, or Nil on error

StreamPost

Performs an HTTPS POST and returns an SSE stream for reading events.

method : public : StreamPost(url:Web.HTTP.Url, data:Byte[], content_type:String, pem:String) ~ SSEStream

Parameters

NameTypeDescription
urlUrlURL
dataByterequest body
content_typeStringcontent type
pemStringPEM certificate

Return

TypeDescription
SSEStreamSSE stream, or Nil on error