I’m curious as to what you are trying to accomplish. It sound like i might be doing something similar soon. I have to communicate with one of our customers (who also has an AS/400). They need to check our stock from dumb terminals instead of logging into our website.
While i’m not familiar with this yet, it looks like we’ll be doing what’s called an HTTP request which will use RPG programs to do CGI calls. The customer will send a request for item availability and our system will send a reply as to whether or not the item’s in stock.
I don’t have the mechanics down yet, but if this is similar to what you’re trying to do, i may have an answer soon.
I’m still working on this but there is a redbook from IBM that explains how to do this kind of thing.
Who Knew You Could Do That with RPG IV
It doesn’t look all that hard either. Look up Socket programming and CGI programming (two different ways to the same end).
I found the answer for anyone who needs to access a web page from teh as400. Enter the following command: STRPCCMD PCCMD(‘c:progra~1intern~1iexplore.exe http://WWW.GOOGLE.COM‘)