HTTPAPI beta testing

If you're looking at this page, it's assumed that you've joined the FTPAPI mailing list (which is used for both FTPAPI and HTTPAPI discussions) and would like to help with testing for the next release of HTTPAPI.

Thanks! We could sure use your help testing!

In particular, Scott Klement does not have access to a system that's running OS/400 V5R2 or earlier. Only through your help can we ensure that HTTPAPI runs on older systems from V4R2 and up.

The following are the current beta copies of HTTPAPI. The installation instructions are the same as those on the main HTTPAPI page, except that you should use these downloads instead of the ones provided on those pages.

Format Min Release Download File
Zip V4R2+ httpapi.zip
XML V4R4+ httpapi.xml
SAVF V5R2+ httpapi.savf

Note: The preceding files are all the same version of the code. They are alternative ways to install the same version.

Please test these out and report your questions, comments or concerns to the FTPAPI mailing list. Thanks for your help with beta testing!

Creating Debug Logs

Often times, when something fails, a debug log will provide the additional diagnostics needed to troubleshoot the problem.

To create a debug log, call HTTPAPI's "http_debug" API. This API tells HTTPAPI to log things to a file. For example, in fixed-format RPG, you'd code the following:

     C                   callp     http_debug(*ON)

You should place this statement prior to any calls to other HTTPAPI functions. The easiest way to do that is to stick it at the top of your calc specs. The same API also works in free format RPG, of course:

      /free
          http_debug(*ON);

Once you've recompiled your program, and re-run it, HTTPAPI will write it's debug log to the IFS as /tmp/httpapi_debug.txt

If you prefer a different filename, you can specify this by passing a second parameter to the http_debug API.

     C                   callp     http_debug(*ON: '/tmp/mydebuglog.txt')

You can view this file from green-screen using the i5/OS DSPF command:

DSPF STMF('/tmp/httpapi_debug.txt')

It can also be viewed from Windows via Notepad using a mapped drive, FTP download, iSeries Navigator, etc. Good luck!