ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/RemoveHeaderField
The command removes the specified header.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpRemoveHeaderField : BOOL;
OutputDataHttpRemoveHeaderField : ST_BoolOutputData;
hrHttpRemoveHeaderField : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpRemoveHeaderField := fbHttpRest.RemoveHeaderField(
bExecute := bHttpRemoveHeaderField,
ConnectionHandle:= depragSmartConnection.ConnectionHandle,
sFieldName := 'TestHeaderField',
sClientId := '0',
OutputData => OutputDataHttpRemoveHeaderField);
IF hrHttpRemoveHeaderField <> S_FALSE THEN
bHttpRemoveHeaderField := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".