Versions Compared

Key

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

...

Code Block
languagebp
// https://www.examples.org/parts?color=red
PartColor   = HTTP_Services('GetQueryField', 'color')
CustStatus  = HTTP_Services('GetQueryField', 'status')

// https://www.examples.org/customers?status=active&state=NY
CustState   = HTTP_Services('GetQueryField', 'state')

// https://www.examples.org/oauth?token=5DS7o0QFQ2olod2bIOKDKw9glo3hMx
Token       = HTTP_Services('GetQueryField', 'token')


Warning

Note: query Query fields are case sensitive.

...

HTTP requests can also include header fields, There are a number of pre-defined header fields but developers can also define their own.

Warning

Note: Please review the Required Settings section in the Registry Configuration article to properly enable custom header fields.

Here are a few examples of header fields:

Code Block
languagejs
Accept: image/jpeg
Authorization: Basic dGVzdDp0ZXN0
Cache-ControlAccept: no-cacheimage/jpeg
Accept-Encoding: gzip, deflate

Like query fields, header fields are also name/value pairs. However, these must be retrieved using the GetRequestHeaderField service like so:

Code Block
languagebp
Authorization   = HTTP_Services('GetRequestHeaderField', 'Authorization')
Accept          = HTTP_Services('GetRequestHeaderField', 'Accept')
AcceptEncoding  = HTTP_Services('GetRequestHeaderField', 'Accept-Encoding')


Info

Unlike query fields, header fields are not case-sensitive.


Request Body