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