Versions Compared

Key

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

Returns all of the Response Header Field names and values.

Syntax

Code Block
Response = HTTP_Services('GetResponseHeaderFields')

Returns

A formatted list of all the HTTP response header fields that have been set by the current API.

Parameters

N/A

Remarks

These are formatted as Name : <space> Value <crlf> with an extra <crlf> appended after the last field/value pair. This also returns the HTTP response status since the CGI specification uses the "Status" header field. This will be put into the response before the regular header field/values.

Syntax

Code Block
Response = HTTP_Services('GetResponseHeaderFields')

Returns

N/A

Parameters

N/A

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 RemainingURL argument will contain the value of the remaining portion of the URL that follows the current URL segment. Examples of managing this are found in the HTTP_Entry_Point_Services routine.