Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Returns the value previously set for the indicated Response Header Field. The Name argument is case-insensitive but if the indicated Response Header Field has not been set then it an error condition will be set.

Syntax

Code Block
Response = HTTP_Services('RunHTTPServiceGetResponseHeaderField', HTTPService, RemainingURLName)

Returns

N/AThe value set for the specific HTTP response header field.

Parameters

ParameterDescription
NameHeader Field Name to get.HTTPServiceThe HTTP (or web) service to call.. Required.RemainingURL

Remarks

...

Remarks

The RunHTTPService service is the official way to call specific web service APIs. The HTTPService argument should contain the same name found in the URL segment that corresponds with the API resource. For instance, for the /customers URL, the HTTPService argument should contain the value of customers. This will call the HTTP_CUSTOMERS_SERVICES BASIC+ routine.

...

The Name argument is case-insensitive but if the indicated Response Header Field has not been set then an error condition will be set. 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