HTTPAPI for IBM i (LIBHTTP) is a popular open-source library for making HTTP requests from RPG and other programming languages on the IBM i platform.
Here’s a step-by-step guide on how to download and install HTTPAPI on your IBM i system:
Step 1 - Check your IBM i System Prerequisites
Step 2 - Download HTTPAPI
Step 3 - Upload to your IBM i System
You have three main ways of uploading the SAVF to your IBM i system
1 - Use Scott's automated DOS BAT file to FTP upload
Switch to the directory where you unzipped HTTPAPI.ZIP
Run the batch file. It will FTP to your IBM i System, create the LIBHTTP library, create the appropriate source files, and upload all of the source members.
You have to pass parameters to tell it where your IBM i System is, including your userid and password:
2 - Use Scott's manual FTP upload process
Step 4 - Set Up the Environment
Add the Library to the Library List: Ensure that the library containing HTTPAPI is in your library list. You can do this by using the ADDLIBLE
command: ADDLIBLE LIB(LIBHTTP)
Step 5 - Test the Installation
Run Sample Programs: LIBHTTP usually comes with sample programs. You can run these to verify that the installation was successful. Look for sample programs in the source files and compile them similarly to how you compiled the main library.
By following these steps, you should be able to successfully download, install, and set up HTTPAPI for IBM i (LIBHTTP) on your IBM i system.