HTTP Web Request

This activity sends a request to a Web service and returns the result in tokens. To configure this activity, you will need access to a Web service, access to its API, and a basic understanding of HTTP transactions.

See the tokens this activity produces.

Example: A workflow gathers information about new internship positions and ensures the positions are approved by the proper people. At the end of the workflow, an HTTP Web Request activity posts the job description to the company's website.

Example: A workflow uses a series of HTTP Web Request activities to get information about upcoming events from a variety of community websites. It then fills out a PDF form with that information and e-mails it to the PR department.

To add this activity to a workflow definition

To configure this activity

Tokens for HTTP Web Request

The HTTP Web Request activity produces the following tokens.

Name Description Sample Syntax*
Content File The file returned by the Web service in response to the HTTP web request. You can use this token in the HTTP Form Post activity to post a file to a form. %(HTTPWebRequest_Content File)
Content The data returned by the HTTP web request. %(HTTPWebRequest_Content)
Content Length The length of the response in characters or bytes. %(HTTPWebRequest_Content Length)
Response Status

The status code returned with the request. If the request succeeded, the status code will be in the 200s. If it failed, the code will be in the 400s or 500s. These warnings will appear in the Message tab of the workflow's instance details.

%(HTTPWebRequest_Status)
Response Status Description The description that accompanies the status code. %(HTTPWebRequest_Status Description)
Request Succeeded Whether the HTTP web request succeeded or not. This token will have one of two values: "True" or "False." %(HTTPWebRequest_Succeeded)
Response Header A token will be created for each response header you request. %(HTTPWebRequest_Response Header Name of Header)

*"HTTPWebRequest" will change to match the name specified in the Activity Name property box.

Note: All non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity "Connect to ^Site^," the syntax for the Content token will be: %(ConnecttoSite_Content).