GETURI FAQ
Is there an API interface to GETURI that I can use to return data to my program instead of reading data from a physical file or stream file?
Yes, with v3.00b of GETURI I have added an API interface. See the GETURI documentation for more information on use of this API interface.
I'm using GETURI with SSL and receiving and error code. What does the error code mean?
You can find descriptions of the return codes (RC) by following the instructions listed on this site.
I'm receiving the error "Error performing SSL handshake. There is no error. RC(23) errno()." How can I fix this?
This error is saying that you don't have the proper Certificate Authority(ies) (CAs) installed on your machine in order to communicate over SSL with the web service you are using. You'll need to install the CAs requred for this.
This page will provide instructions on how this is done.
I'm making a GETURI request that uses SSL and receiving an authority error like "Error during initializing SSL. Permission Denied. RC(10) errno(3401)" or "Error initializing SSL Environment. RC(6003) Access to the key database is not allowed". What do I need to do to fix this?
This is because the user that is making the request does not have the proper authorities to the SSL keyring files and/or directory that are located in the IFS. The keyring files (on most systems) can be found by using the following command:
WRKLNK '/QIBM/UserData/ICSS/Cert/Server/*'
Normally running the following commands will fix this issue:
CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server') USER(*PUBLIC) DTAAUT(*RX)
CHGAUT OBJ('/QIBM/UserData/ICSS/Cert/Server/*') USER(*PUBLIC) DTAAUT(*R)
Do you have an example of using GETURI?
There are some examples listed at this page, but if you have a unique situation, or examples using cURL and/or Postman, feel free to send them to us and we can put together a simple example for you.