Setting up a PUT request

An Http PUT is identical to a POST in terms of the HttpClient. An API often makes a behavioural distinction between POST and PUT in terms of the creation and update of resources. If a PUT is required, there is no functional difference in this module, and all that is required is to change the client method to PUT.
Prerequisites: You are connected to the station, which has an HttpClient component.
  1. Expand HttpClient and change Method to PUT.
  2. Expand Address, enter the Host Address and Path and click Save.
    The Address properties are configured for a PUT request.
    Image
  3. Expand Request Body.
  4. Fill in the properties and click Save.
  5. Right-click HttpClient and click Actions > Send.
    The driver populates our test service (which echoes back the request content) from our Data slot, and automatically populates the Content-Length and Content-Type: