<cUrl_Http>.ExitCode

<< Click to Display Table of Contents >>

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

<cUrl_Http>.ExitCode

 

Description

 

Read only property to retrieve CURL exit code after sending the request.

 

Syntax

 

exitCode = <cUrl_Http>.ExitCode

 

Returns

 

Integer, containing the CURL process exit code.

 

Remarks

 

Value is filled by using the <cUrl_Http>.Exec.

 

In case of success, the value will be 0.

 

Restrictions
 

Read only.

 

See also

 

Examples

 

uses "curl", "console"

 

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

 

httpRequest.Exec

 

printl httpRequest.ExitCode ' Will contain 0 in this case, indicating success