Response-Content-Type - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Guidelines
You must specify all methods allowed when using this command. Thus, if the
current settings allow four methods and you want to add a fifth, you must specify
all five methods with the command.
Related Commands
response-version
Examples
v Sets the allowed response codes to HTTP-100 and HTTP-200 only.

response-content-type

Sets the HTTP Content types to allow.
Syntax
response-content-type PCRE
no response-content-type PCRE
Parameters
PCRE Specifies a string representation of the Content type to allow (such as
Guidelines
Use this command as many times as desired to create a list of HTTP Content types
allowed by this profile. If no Content types are specified, all Content types are
allowed. Use the no response-content-type command with no PCRE parameter to
remove all types assigned using this command. Use the no response-content-type
command with the PCRE parameter to remove only the designated Content type
from the list.
Examples
v Sets the allowed Content types totext/xml and text/html.
774
Command Reference
v HTTP-402 — Payment Required
v HTTP-403 — Forbidden
v HTTP-404 — Not Found
v HTTP-405 — Method Not Allowed
v HTTP-406 — Not Acceptable
v HTTP-407 — Proxy Authentication Required
v HTTP-408 — Request Timeout
v HTTP-409 — Conflict
v HTTP-410 — Gone
v HTTP-411 — Length required
v HTTP-412 — Precondition Failed
v HTTP-413 — Request Entity Too Large
v HTTP-500 — Server Error
v HTTP-503 — Service Unavailable
# response-codes HTTP-100+HTTP-200
#
text/xml). This is a PCRE expression that may match one or more HTTP
Content type expressions.

Advertisement

Table of Contents
loading

Table of Contents