ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/Get
Sends a GET 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
bHttpGet : BOOL;
OutputDataHttpGet : ST_HttpResultWithStringContentOutputData;
hrHttpGet : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpGet := fbHttpRest.Get(
bExecute := bHttpGet,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
sRequestUri := '/testGet',
sClientId := '0',
OutputData => OutputDataHttpGet);
IF hrHttpGet <> S_FALSE THEN
bHttpGet := 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".