<cUrl_Http>.Insecure

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > CURL > cUrl_Http > cUrl_Http Properties >

<cUrl_Http>.Insecure

 

Description

 

Get / Set option for performing the request in insecure mode.

 

Syntax

 

' GET

insecureFlag = <cUrl_Http>.Insecure

 

' SET

<cUrl_Http>.Insecure = insecureFlag

 

Returns

 

Value of the .Insecure flag.

 

Parameters

 

Name

Type

Optional

Meaning

insecureFlag

Boolean

Yes

Boolean flag to indicate insecure mode preference.

 

Remarks

 

Official documentation of the insecure flag: https://curl.se/docs/manpage.html#-k

 

Restrictions

 

See also

 

Examples

 

uses "curl"

 

Dim httpRequest As New cUrl_Http("http://www.thinbasic.com")

 

httpRequest.Insecure = True  ' Instructs CURL to ignore certificate information

 

httpRequest.Exec