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
These HTTP functions exists in QSYS2 and have lower overhead than the SYSTOOLS HTTP functions.
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 5 & IBM i 7.4 SF99704 Level 26:
- Improved HTTP header options for returning cookies
Enhanced with IBM i 7.5 SF99950 Level 4 & IBM i 7.4 SF99704 Level 25:
- Add BLOB-based versions of QSYS2 HTTP functions
Enhanced with IBM i 7.5 SF99950 Level 3 & IBM i 7.4 SF99704 Level 23
- HTTP options support for "headers" allows users to contain all header options within a single JSON document.
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 and HTTP_GET_BLOB scalar function
HTTP_GET_VERBOSE and HTTP_GET_BLOB_VERBOSE table function
HTTP_POST and HTTP_POST_BLOB scalar function
HTTP_POST_VERBOSE and HTTP_POST_BLOB_VERBOSE table function
HTTP_PUT and HTTP_PUT_BLOB scalar function
HTTP_PUT_VERBOSE and HTTP_PUT_BLOB_VERBOSE table function
HTTP_DELETE and HTTP_DELETE_BLOB scalar function
HTTP_DELETE_VERBOSE and HTTP_DELETE_BLOB_VERBOSE table function
HTTP_PATCH and HTTP_PATCH_BLOB scalar function
HTTP_PATCH_VERBOSE and HTTP_PATCH_BLOB_VERBOSE table function
Configure TLS/HTTPS secure communications link:
SSL Considerations for QSYS2 HTTP Functions
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:
06 October 2023
UID
ibm16486889