Web Request Task Properties Window

The Web Request Task Properties window is displayed when you edit a job step that runs a Web Request Task.

Property Pages

In addition to the standard response events, this task defines the following events:

Event Description
The Web request was executed (regardless of the outcome) Occurs when the Web request has been executed, regardless of the result.
The HTTP request returns the following status code Occurs if the HTTP request returns the specified status code. For example, a status code of 404 is returned if the page or file is not found.

Web Request

URL to Request

Enter the URL of the Web page or file to request. For example, http://www.example.com. The URL may contain Job Variables.

Credentials

Specify the credentials, if any, needed for this Web resource.

  • If the Web resource does not require credentials (i.e., it accepts anonymous requests), select "Use the job's credentials."
  • If the Web server is configured to use Windows authentication, and the account that the job is running under has the necessary permission on the Web server, select "Use the job's credentials."
  • Otherwise, you must select "Send the following credentials to the Web server" and provide the necessary credentials. Type the user name in the User ID box. If this is the first time this user ID has been used for a Web-based task in adTempus, you will be prompted to complete a Credential Profile for the user ID, specifying the password.

Save the page or file returned by the server

Use these options if you want to save the page or file returned by the Web server. You can choose to save the file in the job's history and/or save the file to a specified directory.

Job Variables

The Web Request Task sets the following Job Variables, which can be used by subsequent operations in the job:

Variable Description
WebRequest.RequestURL The URL requested by the task.
WebRequest.StatusCode The HTTP status code returned by the remote server.
WebRequest.ResponseFileName The path/name of the file where the response is saved (if the option to save the server response to a file has been specified for the step).

Related Concepts

Web Request Task