StringServlet (httpClient-StringServlet)

This component captures requests coming in to the station from an external client. You can also send GET requests to a StringServlet. The functionality is the same, except no Request Body can be posted.

This may be any Http client such as:

  • a web browser
  • a command line utility, such as curl or wget
  • an application for creating requests, such as Postman
  • another httpClient instance running on another station

Figure 41.   StringServlet properties
Image

To access, expand ConfigDriversIncomingRequests and drag this component to IncomingRequests, then double-click it.

In addition to the standard properties (Status, Enabled, and Fault Cause), this component provides these properties.

Property Value Description
Servlet Name text Defines the name of the servlet.
Out read-only Displays the message body of any POST request, when an HTTP request is sent to the StringServlet.
Last Received read-only Displays when the the last message was received.
Csrf Protection true or false (default) Turns CSRF protection on and off.

true enables CSRF protection.

false disables CSRF protection.

Clear Between Duplicate Request true or false (default) Configures what happens between duplicate requests.

true clears messages between duplicate requests.

false disables this function.

Response Body additional properties
Configures the request body content.

For property descriptions refer to “Request Body (httpClient-HttpRequestBody)”.

Report Name text Defines the name of the report for an incoming request.
Report File Ext text Defines the file extension of the report file.

Action

Reset returns all properties to their original values.