HTTP Request

Use the Web HTTP Request activity to send a request for a file based on a URL, HTTP headers, or Cookies data. This request generates a response in an output file provided by the web server.
This activity supports generic HTTP operations, such as POST and GET, and is used to retrieve a web page and then examine the results to ensure there are no errors. The activity can be used to perform synthetic transactions against portals or other web sites.

  1. In the Workflow Editor Toolbox, choose Web Service > HTTP Request and drag and drop the activity onto the Workflow pane.

  2. On the Workflow Properties pane, enter the following information:

    1. Under General, specify the following information:

      1. Display Name: Enter the unique display name for the activity.

      2. Description: Enter the brief description about the activity.

      3. Activity Timeout (Seconds): Enter the number of seconds to wait for HTTP Request activity to fail because it timed out.

      4. Check the Continue Workflow Execution on Failure check box to continue the workflow execution on failure of the activity.

    2. Under Target, specify the following information:

      1. Use Workflow Target: Check this radio button to use the workflow target.

      2. Override Workflow Target: Check this radio button to override the workflow target. You can select the appropriate target or +ADD NEW  from the dropdown list. For more information, see HTTP Endpoint.

      3. Use Workflow Target Group: Check this radio button to use the workflow target group.

      4. Override Workflow Target Group Criteria: Check this radio button to override the workflow target group criteria.

    3. Under Credentials, specify the following information:

      1. Use Target's Default Account Key: Check this radio button to use the target's default account key.

      2. Override Account Key: Check this radio button to override the workflow account key. You can select the appropriate Account key or +ADD NEW from the dropdown list. For more information, see HTTP Basic Authentication or HTTP Client Certificate Authentication.

    4. Under HTTP Request, enter the following information or click Variable Reference icon to choose any variable:

      1. Relative URL: Enter the relative URL to be requested. The base URL will be determined by the web target combined with the relative URL during the activity execution. Use slash (/) before the URL, for example: /system/v1/auth/login

      2. Method: Select the method to be performed on the resource identified by the Request-URI from the dropdown list such as GET, POST, PUT, and so forth.

      3. Request Body: Enter the message body to be carried in the HTTP request.

        You will be able modify the request body formats using Format option in the right bottom such as JSON, Text, XML, and so forth.

    5. Under Headers, enter the following information:

      1. Content Type: Select the appropriate value for the content type used to define the structure of the output such as HTML, JSON, Plain Text, and so forth.

      2. Accept: Enter the value of the Accept HTTP header.

      3. User-Agent: Enter the value of the User-agent HTTP header.

      4. Custom Headers: Click +ADD, to enter the Header and Value.

      5. Cookie: Click +ADD, to enter the cookie to be accepted from HTTP request.

    6. Under Behavior, specify the appropriate information:

      1. Allow auto redirect: Check this check box to allow the header request to be redirected automatically. It is checked by default.

      2. Continue on HTTP Error Status Code: Check this check box to allow the header request to continue on HTTP Error Status Code.

Back to: Web Service

  • No labels
Terms & Conditions Privacy Statement Cookies Trademarks