ClearRequestHeaders

Description

Clears the headers of the request.

Applies to

HTTPClient and RestClient objects

Syntax

objectname.ClearRequestHeaders ( )

Argument

Description

objectname

The name of the HTTPClient or RestClient object from which you want to clear the request header


Return value

Integer.

Returns 1 for success and -1 for failure.

Examples

This example clears the request headers in the object lnv_HttpClient:

HttpClient lnv_HttpClient
integer li_return
lnv_HttpClient = Create HttpClient

li_return = lnv_HttpClient.ClearRequestHeaders()

See also

GetRequestHeader

GetRequestHeaders

SetRequestHeader

SetRequestHeaders