I Actually applaud those that will start with the primitive APIs...
knowing how they work will allow most people to understand the tools
available, how they work and what they should be able to do.

It's sort of like in calculus they'd teach you this hard way, then
show you the easy way to solve problems.. lol... (but now don't
remember either way..)

Although I'm not saying putting these types of things into production
is a good idea. :) CGIDEV2, eRPG SDK, etc.. are much better choices.
But I do feel those that understand the raw APIs will understand the
tools and how to use them better.


Brad
www.bvstools.com

On Sun, Jun 24, 2012 at 12:34 PM, Jon Paris <jon.paris@xxxxxxxxxxxxxx> wrote:
The most obvious question Daryl is why are doing so much hard work?

CGIDEV2, powerExt, Renaissance and a whole bunch of others all make it easier than the raw APIs. Your masochism is showing <grin>

Apache would normally be doing the conversion for you - what is your setting for CGIConvMode? See http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AEO04/1.1.4.1 if you don't know what I am talking about.




On 2012-06-24, at 1:00 PM, web400-request@xxxxxxxxxxxx wrote:

I am writing my first CGI program using the basic API's such as

-          Getenv

-          Qtmhwrstout

-          Qtmhrdstin



My basic program "works". I read the login data and parse it out normally.



I then write to the buffer, a basic response using qtmhwrtout.



The browser gets the response, but the data I see in the browser debugger is
garbage. I expect that there may be a translation required, but where?

Jon Paris

www.partner400.com
www.SystemiDeveloper.com




--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


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.