0 pts.
 access website from as/400
Our as/400 is accessable from the internet. How can we assess a website from a command line or a CL program on the as/400?

Software/Hardware used:
ASKED: March 24, 2005  4:59 PM
UPDATED: April 26, 2005  4:16 PM

Answer Wiki:
I don't believe that is possible.
Last Wiki Answer Submitted:  March 28, 2005  11:39 am  by  TennPgmr   0 pts.
All Answer Wiki Contributors:  TennPgmr   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 0 pts.

 

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
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg245402.html?Open

It doesn’t look all that hard either. Look up Socket programming and CGI programming (two different ways to the same end).

 0 pts.

 

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‘)

 0 pts.