News
Abstract
These HTTP services are used to make HTTP requests that use web services. These functions allow the
SQL programmer to use Representational State Transfer (RESTful) via SQL, including Embedded SQL. The
services provide the same capabilities as the SYSTOOLS HTTP functions without the overhead of creating
a JVM.
The services use the HTTP transport APIs that are part of the Integrated Web Services (IWS) client for ILE support.
Content
Additional benefits of the QSYS2 HTTP functions are HTTP authentication, proxy support, configurable
redirection attempts, and configurable SSL options.
Enhanced with IBM i 7.5 SF99950 Level 1, IBM i 7.4 SF99704 Level 20, and IBM i 7.3 SF99703 Level 28:
- Add HTTP_PATCH scalar function
- Add HTTP_PATCH_VERBOSE table function
- New header option, verboseResponseHeaderFormat, that specifies how the information in the RESPONSE_HTTP_HEADER column of the HTTP_xxx_VERBOSE functions is to be returned
Links to relevant documentation:
SQL programming:
SQL Reference
HTTP_GET_VERBOSE table function
HTTP_POST_VERBOSE table function
HTTP_PUT_VERBOSE table function
HTTP_DELETE_VERBOSE table function
HTTP_PATCH_VERBOSE table function
Simple examples:
-- Use HTTP_POST to ask IBM Watson to translate text from English --> Spanish
-- Use HTTP_GET to find a list of JSON feeds that are public and free to use
Was this topic helpful?
Document Information
Modified date:
03 May 2022
UID
ibm16486889