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
Parameter | Description |
---|---|
Name | Header Field Name to set. Required. |
Value | Value 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 |
The Append argument is to be used for header fields that can store multiple values, such as different HTTP methods for the Allow header field or various properties in the Content-Types header field.