pbClearHeaders - cXmlHttpTransfer
Determines if Http Headers should be cleared after XML data is posted
Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None
Syntax
Property Boolean pbClearHeaders
| Access Type | Syntax |
|---|---|
| Read Access: | Get pbClearHeaders to BooleanVariable |
| Write Access: | Set pbClearHeaders to BooleanVariable/Value |
Description
pbClearHeaders determines if the message ClearHeaders should be sent after posting XML data. By default, this value is is True and headers are cleared as part of the post.
After XML data is posted using the HttpPostXmlNode, HttpPostXmlString or HttpPostXmlAddr methods, the Http headers must be cleared. If this is not done you may receive an error message whan you attempt to post data a second time.
In rare cases, you may wish to create additional headers using the AddHeader method. In such a case you must disable the automatic clearing of headers (set pbClearHeaders to False), clear the headers yourself (send ClearHeaders) and then add whatever headers you wish (send AddHeader).
Object oXmlHttpTransfer is a cXmlHttpTransfer
Set pbClearHeaders to False
End_Object
:
Send ClearHeaders of oXmlHttpTransfer to False
Send AddHeader of oXmlHttpTransfer "MyName" "MyValue"
Get HttpPostXmlNode of oXmlHttpTransfer sHost sFilePath hoXmlSent to hoXmlReceived