Page 1 of 1

HTTP POST request with universal display

Posted: Tue Mar 08, 2016 11:53 am
by Steve Bone
Hio,

Is it possible to initiate a POST request with the data from a universal display?
We would like to call a web service with it and process the received data.

Kind regards,
SB

Re: HTTP POST request with universal display

Posted: Tue Mar 08, 2016 3:48 pm
by Glenn
Steve,

I would suggest consuming the web service directly from your RPG program using something like HTTPAPI or CGIDEV2. Our Universal Display Files are intended to produce dynamic text output.

Glenn

Re: HTTP POST request with universal display

Posted: Mon Mar 14, 2016 4:24 am
by Scott Klement
Steve,

Are you asking if there's a way to make an HTTP POST request from an RPG program? If so, you could use HTTPAPI for this. HTTPAPI is an open source tool that I wrote for making client-side HTTP requests from RPG. There are other tools like this out there as well, such as Brad Stone's GETURI.


Glenn,

I don't understand how CGIDEV2 would be used, here. CGIDEV2 is a set of server-side routines for writing web applications. It's very much like our Universal displays, except that it uses subprocedure calls instead of Open Access. How would CGIDEV2 help him make a POST request?