To create an HTTP Action:

  1. Click Configure > HTTP Request Actions
  2. Click Create HTTP Request Action in the right panel to access the wizard.
  3. In the General Information section: 
    1. Define an Action Name.
    2. Select a request method type from the Method dropdown list:
      • GET
      • POST
      • PUT
      • DELETE
    3. Enter a URL for the request in the Raw URL field.
    4. Select the URL encoding scheme from the dropdown menu. Only UTF-8 and ISO_8859-1 are supported.
  4. If the intended communication is encrypted, configure the authentication settings as follows:
    1. Select Basic authentication for your HTTP request from the Type dropdown list.
    2. Specify the authentication username.
    3. Specify a password and confirm the password.

      If the communication is not encrypted, we recommend that you do not use any authentication. Select None in step a.

  5. (Optional) To use custom variables that replace values in the URL path and payload when the HTTP request is sent, in the Custom Variable and Headers (Optional) section:

    1. Click + Add variable .
    2. Enter a variable name and its default value
    3. Click + Add header .
    4. Enter a header name and its default value. Custom request headers can contain custom variables encoded as $(VARIABLE_NAME) .

      You can review a set of Predefined Variables. Check this list before you create any custom variables. Likely, the variable you want to define already exists.

      You can optionally configure custom variables if the predefined variables do not meet your needs. When a predefined variable and a custom variable are both configured with the same variable name, the predefined variable is used.

  1. (Optional)To include a payload in your HTTP POST, PUT, or DELETE request, in the Payload (Optional) section:
    1. Select a MIME Type from the dropdown list.
    2. Select an encoding scheme for the payload from the dropdown menu. Only UTF-8 and ISO_8859-1 are supported.
    3. If you have configured custom variables, enter the payload details.
  2. (Optional)To configure how HTTP responses are handled, in the Response Handling Criteria (Optional) section:
    1. To configure a failure criteria, in the Failure Criteria section, click + Add Failure Criteria
      1. Select a status code from the dropdown list.
      2. If you expect a payload for your request, select the Expect payload checkbox.
      3. Select the content type for the payload from the dropdown list.
    2. To configure a success criteria, in the Success Criteria section, click + Add Success Criteria
      1. Select a status code from the dropdown list.
      2. If you expect a payload for your request, select the Expect payload checkbox.
      3. Select the content type for the payload from the dropdown list.

        If you do not specify any response-handling criteria for either success or failure, the HTTP response is always success

  3. (Optional)To configure timeouts and redirects for your HTTP request, in the Settings (Optional) section:
    1. Enter the maximum number of milliseconds to wait for the request to reach the server in Connect Timeout.
    2. Enter the maximum number of milliseconds to wait to receive the response in Socket timeout.
    3. Enter the maximum number of times that a single request can redirect in Max Redirects.

Edit an HTTP Action

  1. Click Configure HTTP Request Actions
  2. Click the name of the desired action to access the wizard.
  3. Edit the configuration.
  4. Click Save.