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.

You can drag an Http Request block and drop it inside a workflow working area when a green field appears. Doing so makes it a part of that workflow.

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.

Procedure

  1. Two fields must be filled in so that your HttpRequest block can work:

  • Method - the (five) different ways Http Requests work;

  • 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.

2. Click More to expand the block with ten advanced, optional settings: Protocol, Port, Path, Query, Headers, Cookies, followRedirect, Proxy, Body, and authKey. Check out How-To: Use HTTP Requests in a Workflow for more information on how to set them up.

3. 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.