ClearHeaders Method  
 

Removes all custom request headers for the current session.

Syntax

object.ClearHeaders

Parameters

None.

Return Value

A value of True is returned if the method completed successfully. If the method fails, it will return False and the LastError property will contain the error code.

Remarks

The ClearHeaders method removes all custom request header values set using the SetHeader method. This is useful when you want to ensure that custom headers used for a previous call to SendMessage are not included with subsequent requests made during the same session.

This method does not clear authentication credentials, organization identifiers, project identifiers, or any required headers automatically generated by the control.

See Also

ApiKey Property, OrganizationId Property, ProjectId Property, GetHeader Method, SendMessage Method, SetHeader Method