I am trying to find an API similar to
QtmhGetEnv that allows me to read URL parameters in an RPG-based CGI script.
Is there something like that available?
There are several alternatives, but without knowing why QtmhGetEnv is not a good fit, these may not be desirable either:
QthmGetEnv is basically a wrapper for getenv()
ILEastic is one of the open solutions available on GitHub by Niels Liisberg and others
Brad Stone has had the eRPG SDK available for many years
Giovanni Perotti at Easy400 has had CGIDEV2 available for many years
All of this 3rd party software has support from the developers and the midrange community.