|
I have a situation where I need to display a webpage from within a rpg
program. The idea is to simply have a command key to active this.http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/strpccmd.
I've done this before, but the problem I'm running into with this
webpage is length of the URL.
STRPCCMD is limited to I think 123 characters. I well past that.
I found a possible solution that looks something like this(taken from
http://www-01.ibm.com/support/docview.wss?uid=nas125cbd3c71c3cafd08625
72d700525c13
)
STRPCCMD PCCMD('del c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo set first=
Firefox\firefox.exe"c:\temp\url.bat')STRPCCMD PCCMD('cmd /c echo set
last=resultof=%22%73%74%72%70%63%63%6d%64%22%20 >> c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo "C:\Program Files\Mozilla
%first%%last% >> c:\temp\url.bat')
STRPCCMD PCCMD('start c:\temp\url.bat')
I thought this would be the answer, but apparently there is an issue
here also. When I try to 'set last' with this cmd /c echo set
last=?Action=login&UserName=mike
It doesn't like the &UserName. There are actually more parameters in
this string, I just included the first 2.
Can anyone suggest a way around this or another method to display the
webpage when the URL is long?
Thanks
Mike
NOTICE: This message, including any attachment, is intended as a
confidential and privileged communication. If you have received this
message in error, or are not the named recipient(s), please
immediately notify the sender and delete this message.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,--
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.