HTTP Redirect

Overview

You can use the HTTP Redirect filter to enable the API Gateway to send an HTTP redirect message. For example, you may wish to send an HTTP redirect to force a client to enter user credentials on an HTML login page if no HTTP cookie already exists. Alternatively, you may wish to send an HTTP redirect if a Web page has moved to a new URL address.

Configuration

Complete the following settings:

Name:

Enter a descriptive name for this filter.

HTTP response code status:

Enter the HTTP response code status to use in the HTTP redirect message. Defaults to 301, which means that the requested resource has been assigned a new permanent URI, and any future references to this resource should use the returned redirect URL.

Redirect URL:

Enter the URL address to which the message is redirected.

Content-Type:

Enter the Content-Type of the HTTP redirect message (for example, text/xml).

Message Body:

Enter the message body text that you wish to send in the HTTP redirect message.