You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Sets the indicated Response Header Field with the indicated value. This can then be retrieved with a GetRequestHeaderField service call so that server processing can operate accordingly.

Syntax

Response = HTTP_Services('SetResponseHeaderField', Name, Value, Append)

Returns

N/A

Parameters

ParameterDescription
NameHeader Field Name to set. Required.
ValueValue for the header field. This will be Trimmed to enforce proper formatting. Required.
Append

Flag that determines if values can be appended to a list. By default this is false and all values will replace existing values. Optional.

Remarks

Any value can be entered for the Name argument, but there is a pre-defined list of standard HTTP response header field names which have been defined as metadata for this service to make it easier for the developer to select one. The current list is as follows:

Access-Control-Allow-Headers
Access-Control-Allow-Methods
Access-Control-Allow-Origin
Allow
Content-Encoding
Content-Language
Content-Length
Content-Location
Content-Disposition
Content-Type
Date
Expires
Last-Modified
Link
Location
Retry-After
Server
Set-Cookie
Transfer-Encoding
Vary
WWW-Authenticate
  • No labels