SetMethod method: PTDirectTransferObject class

Syntax

SetMethod(HTTP_Method)

Description

Use the SetMethod method to set the HTTP method (such as GET, POST, PUT and so on) for the cURL request.

Parameters

Parameter Description

HTTP_Method

Specifies the HTTP method as a String.

Returns

An Integer value indicating the libcurl error code.

Example

Local PTDirectTransferObject &PTDTObject = CreateDirecttransferObject();
Local integer &return = &PTDTObject.SetMethod("POST");