htmlConnectionClose(conID As String) As String

 

Close an established connection to a webservice and free up resources

 

 

Parameters:

 

Name

Type

Description

conID

String

Identifier of existing htmlConnection object

 

Returns:

 

Type

Value

Description

String

OK

The authentication header has been set

String

ERROR

Setting of the authentication header failed

 

Available in:

 

WindowMain

WindowLink

YES

NO

 

 

Example XojoScript:

 

// Create new URLConnection

Dim conID As String = htmlConnection

 

// Send a GET request to webservice

Dim response As String

response = htmlSendSync(conID,"GET","https://jsonplaceholder.typicode.com/todos/8",15)

 

// show resulting JSON string to user

MsgBox(response)

 

// Release connection

Call htmlConnectionClose(conID)