×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Could you use an internal URL shortener to first shorten the URL then pass
it? I have been using YOURLS (http://yourls.org/) for a bit now and you can
create shortened URLs via their API. It is all PHP and AJAX, so it should
run just fine in Zend.

--
Mike Wills
http://mikewills.info
P: (507) 933-0880 | Skype: koldark


On Thu, May 6, 2010 at 8:38 AM, Smith, Mike <Mike_Smith@xxxxxxxxxxxxxxxx>wrote:

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.
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=nas125cbd3c71c3cafd0862572d700525c13
)
STRPCCMD PCCMD('del c:\temp\url.bat')
STRPCCMD PCCMD('cmd /c echo set first=
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/strpccmd.htm?
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 Firefox\firefox.exe"
%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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.