<cUrl_Http>.Url

<< Click to Display Table of Contents >>

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

<cUrl_Http>.Url

 

Description

 

Get / Set HTTP request URL.

 

Syntax

 

' GET

requestUrl = <cUrl_Http>.Url

 

' SET

<cUrl_Http>.Url = newUrl

 

Returns

 

String containing the value of url in cUrl_Http request.

 

Parameters

 

Name

Type

Optional

Meaning

newUrl

String

Yes

Any URL to be passed to curl

 

Remarks

 

Restrictions

 

See also

 

Examples

 

uses "curl", "console"

 

Dim httpRequest As New cUrl_Http

 

httpRequest.Url = "https://www.thinbasic.com"

printl httpRequest.Url ' Will return "http://www.thinbasic.com" for this case