SetHeader method: PTDirectTransferObject class
Syntax
SetHeader(Header)
Description
Use the SetHeader method to set the header for the cURL request.
Note:
The SetHeader method is optional. The built-in functions internally handle some of the default headers such as, authentication and content type.
Parameters
| Parameter | Description |
|---|---|
|
Header |
Specifies a header as a String. |
Returns
An Integer value indicating the libcurl error code.
Example
Local PTDirectTransferObject &PTDTObject = CreateDirecttransferObject();
Local integer &ret = &PTDTObject.SetHeader("Host: myhost.com");