ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/Delete
Sends a DELETE request to a URL.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpDelete : BOOL;
OutputDataHttpDelete: ST_HttpResultWithStringContentOutputData;
hrHttpDelete : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpDelete := fbHttpRest.Delete(
bExecute := bHttpDelete,
ConnectionHandle:= depragSmartConnection.ConnectionHandle,
sRequestUri := '/testDelete',
sClientId := '0',
OutputData => OutputDataHttpDelete);
IF hrHttpDelete <> S_FALSE THEN
bHttpDelete := 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".