Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Modules > CURL > cUrl_Http

cUrl_Http constructor

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

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")

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software