calling a URL from RPG OR CL

5 pts.
Tags:
AS/400
AS/400 Web Access
URL
I would like to call a html. page from either a RPGLE or CL program.

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

Check out this article:

http://systeminetwork.com/article/use-cgi-redirects-launch-long-urls.

It requires a membership but i think a free on will work. If not you can get the code from:

http://www.pentontech.com/IBMContent/Documents/article/55778_385_OpenUrl.zip

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    There are at least two possible meanings from your question:
    1. Most likely -- you want a user who calls your program in a telnet emulator session to see a browser open up on his/her PC with a web page that was provided by your program.
    2. Less likely -- you want your RPG (or CL) program to connect some web server and read a page from that server. Processing of the HTML would be done in your program.
    The most common way to handle the first case is with the STRPCCMD command. Set the environment by running a STRPCO command. Then:
    STRPCCMD PCCMD('start http://www.google.com') PAUSE(*NO)
    There are some significant limitations and restrictions with STRPCCMD. Be prepared to throw it away and replace it with RUNRMTCMD. You can get experience with STRPCCMD, but it might not work with your emulator software or you might not like its security implications or you might simply exceed its limits. When/if that happens, you should already be prepared to use RUNRMTCMD (or an alternative such as rexec() or others). Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    Ah... this blasted editor messed the URL in that STRPCCMD parameter. If you just put the plain google URL in place of [googleurl] in this:
    STRPCCMD PCCMD(’start [googleurl]') PAUSE(*NO)
    ...you should get the idea. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following