<cUrl_Http>.Method

<< Click to Display Table of Contents >>

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

<cUrl_Http>.Method

 

Description

 

Get / Set HTTP request method.

 

Syntax

 

' GET

httpMethod = <cUrl_Http>.Method

 

' SET

<cUrl_Http>.Method = httpMethod

 

Returns

 

String containing the value of method for cUrl_Http request.

 

Parameters

 

Name

Type

Optional

Meaning

httpMethod

String

Yes

Valid HTTP method, for example:

 

"GET"

"POST"

"PUT"

"DELETE"

 

Remarks

 

If not specified, "GET" HTTP method will be presumed.

 

Restrictions

 

See also

 

Examples

 

uses "curl"

 

Dim httpRequest As New cUrl_Http

 

httpRequest.Method = "GET"

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

 

httpRequest.Exec