Setting up a GET request
An HttpClient component GET is a request to a given endpoint and is often used to retrieve data for a specific resource. It may include
various parameters specific to that request.
Prerequisites: You are connected to the station. HttpClientService has been added to station’s Service container. Standalone client types in the HttpClientService have been enabled.
- Open the httpClient palette.
- Add an HttpClient component to your station from the palette and expand the
Address slot.The
Address properties open.
The Insecure option for Mode configures the HttpClient without communication security (TLS, Transport Layer Security) and assumes port 80 by default. The Secure option refers to https on port 443 by default.
- Do one of the following:
- Populate the
Mode, Host Address, Port and Path properties and click Save.
- Right-click
Address, click , paste a complete url in the field and click OK.
- Right-click HttpClient and click .
The driver makes the request, populates the
Out slot with the http response body and displays the response code and any errors under the
Health slot.