Previous Topic: INTERACTIVE Statement—Specify Whether to Run a Windows Job in Interactive ModeNext Topic: IPADDRESS Statement—Specify the IP Address to Monitor


INVOCATIONTYPE Statement—Specify the HTTP Method Type

The INVOCATIONTYPE statement indicates the HTTP method type, which can be either GET or POST, in an HTTP job.

Supported Job Type

This statement is required for the HTTP job type.

Syntax

This statement has the following format:

INVOCATIONTYPE GET|POST
GET

Sends the URL over HTTP using the GET method. The GET method requests data and sends the data as part of the URL.

POST

Sends the URL over HTTP using the POST method. The POST method submits data and is the preferred method for sending lengthy form data.

Example: Use the GET Method to Perform a Google Search

Suppose that you want to define a job to perform a Google search and have the results returned to the job's spool file. You also want to refine your search results by specifying a filter. In this example, the job uses the HTTP GET method to perform the Google search on "ca workload automation". When the job runs, the job's spool file includes all matches that contain the filter AE.

AGENT APPAGENT
INVOCATIONTYPE GET
SERVLET_URL http://google.com/search
PARAMETER KEYWORD(q) VALUE('ca workload automation')
AUTHORDER (BASIC, DIGEST, NTLM)
FILTER .*AE.*