<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > CURL > cUrl_Http > cUrl_Http constructor |
Description
Creates a new cUrl_Http object.
Syntax
httpRequest = New cUrl_Http[(Url)]
Returns
Object of type cUrl_Http.
Parameters
Name |
Type |
Optional |
Meaning |
Url |
String |
Yes |
Optional url for HTTP request. |
Remarks
Created object can be further customized via methods and properties, allows performing HTTP requests and processing their response.
Restrictions
See also
Examples
' Approach #1: Directly creating new instance
Dim httpRequest1 As New cUrl_Http
' Approach #2: Directly creating new instance, with URL
Dim httpRequest2 As New cUrl_Http("https://www.thinbasic.com")
' Approach #3: Creating variable of cUrl_Http type, then instantiating it
Dim httpRequest3 As cUrl_Http
httpRequest3 = New cUrl_Http
' Approach #4: Creating variable of cUrl_Http type, then instantiating it with URL
Dim httpRequest4 As cUrl_Http
httpRequest4 = New cUrl_Http("https://www.thinbasic.com")