× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Kelley,

On 11/10/2010 4:02 PM, Kelley Shaddrick wrote:
I've started working with serving web pages from RPG. I started with
a very nice tutorial showing how to use the QtmhWrStout API, very
easy and produced a basic web page on the first try. However, it
limits web page size to the size of the API variable.

Sorry, this simply isn't true. There are lots of reasons to use CGIDEV2 instead of calling QtmhWrStout() directly -- but "it limits web page size to the size of the API variable" simply isn't one of them.

You can call QtmhWrStout() multiple times. Each time you call it, it'll more data to the end of the output stream.

Think of QtmhWrStout() as being like the WRITE opcode in RPG. You can call the WRITE opcode many times, can't you? Each time it adds another record to the end of the file. While it can only write one record at a time, by calling it many times, you can completely populate a physical file.

QtmhWrStout() is the same way. While it may be limited to the size of a single parameter per-call, you can call it many times, and each time you call it, it adds more data on to the web page you are building. So, it really has no limit on how much data it can write.

FWIW, CGIDEV2 also uses QtmhWrStout() to write it's output. :)

So, moving on to newer methods I've been working with CGIDEV2 for a
couple of days now. Unlike the first method, I've had absolutely no
success producing a simple web page with CGIDEV2.

Sorry to hear that.

After resolving countless errors (thanks to all those who encountered
them long before I did and offered solutions on various websites!), I
now get no errors in any log but still no web page is displayed. When
I try to run the program via the browser, I get the opening program
dialog box with the browser asking me what I want to do with this
program.

Sounds like you specified the wrong content-type. Or perhaps you have an extra blank line before your content-type... This is an error you could've made just as easily with QtmhWrStout() if you used it incorrectly.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

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