ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/DefaultRequestHeaders
Predefined headers that are sent each time the REST API is called.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpReadDefaultRequestHeaders : BOOL;
OutputHttpReadDefaultRequestHeaders : ARRAY[1..100] OF STRING;
hrHttpReadDefaultRequestHeaders : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpReadDefaultRequestHeaders := fbHttpRest.ReadDefaultRequestHeaders(
bExecute := bHttpReadDefaultRequestHeaders,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => OutputHttpReadDefaultRequestHeaders);
IF hrHttpReadDefaultRequestHeaders <> S_FALSE THEN
bHttpReadDefaultRequestHeaders := 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".