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.

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