<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > cUrl_Http > cUrl_Http Methods > <cUrl_Http>.Exec |
Description
Sends the request to the server synchronously.
Syntax
exitCode = <cUrl_Http>.Exec
Returns
Exit code of curl process.
Parameters
Name |
Type |
Optional |
Meaning |
Url |
String |
Yes |
Optional url for HTTP request. |
Remarks
Calling the Exec method fills the values of the following fields:
Restrictions
See also
Examples
uses "curl", "console"
Dim httpRequest As New cUrl_Http("https://www.thinbasic.com")
httpRequest.Exec ' Performs default GET request to thinbasic.com, retrieving the page contents to .Output
print "Exit code :" in 10: printl httpRequest.ExitCode
print "Output :" in 10: printl httpRequest.Output
print "Error :" in 10: printl httpRequest.Error