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.
In the Workflow Editor Toolbox, choose Web Service > HTTP Request and drag and drop the activity onto the Workflow pane.
On the Workflow Properties pane, enter the following information:
Under General, specify the following information:
Display Name: Enter the unique display name for the activity.
Description: Enter the brief description about the activity.
Activity Timeout (Seconds): Enter the number of seconds to wait for HTTP Request activity to fail because it timed out.
Check the Continue Workflow Execution on Failure check box to continue the workflow execution on failure of the activity.
Under Target, specify the following information:
Use Workflow Target: Check this radio button to use the workflow target.
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.
Use Workflow Target Group: Check this radio button to use the workflow target group.
Override Workflow Target Group Criteria: Check this radio button to override the workflow target group criteria.
Under Credentials, specify the following information:
Use Target's Default Account Key: Check this radio button to use the target's default account key.
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.
Under HTTP Request, enter the following information or click Variable Reference icon to choose any variable:
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
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.
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.
Under Headers, enter the following information:
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.
Accept: Enter the value of the Accept HTTP header.
User-Agent: Enter the value of the User-agent HTTP header.
Custom Headers: Click +ADD, to enter the Header and Value.
Cookie: Click +ADD, to enter the cookie to be accepted from HTTP request.
Under Behavior, specify the appropriate information:
Allow auto redirect: Check this check box to allow the header request to be redirected automatically. It is checked by default.
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