Http Request Overview
The HttpRequest action block is used to send HTTP requests to servers outside of Pliant. It is a means of communication between one system that requests data (Pliant) and another that responds and delivers the data. The information you have to provide in an Http Request block may vary depending on the character of the request.
The HttpRequest action block works best with the Start block and the Assign action block. All the variables that are needed for setting up the HttpRequest action block go in the Start block and are later assigned to the Assign block.
- Three fields must be filled in so that your HttpRequest block can work:
- Method - the (five) different ways Http Requests work;
- Protocol - can be “Http:” or ”Https:”;
- Host - the server/IP address the request will be sent to;
- The result of an HttpRequest block is assigned to the different variables put in the Start block;
- Click More to expand the block with eight advanced, optional settings: Port, Path, Query, Headers, Cookies, authKey, followRedirect and Body.
An example of a functional HttpRequest block:
- If you run the workflow and a properly set-up request is sent, an appropriate response will be shown at the bottom of the Workflow Editor screen:
To disable the Http Request Block without deleting it, click on the Disable checkbox.