My client Java program (named SndURL) is sending 1MB of XML text to my eRPG
program (named READTOFILE) which attempts to read in the entire XML text
through Standard Input (using qzbhCgiParse).  Here is where I had my initial
problem, reading that big of a request into my program because the API's
only allow for one read when a POST is used.  That is when Anton suggested I
just allocate the needed space based on CONTENT_LENGTH and trick my way
through using IBM's API's by adding to a pointer.  Well that worked great,
now I am just having some minor conversion problems (I am getting garbage,
but it is exactly the correct amount of KB's).

Here is the sub proc that is doing what I am describing.  I have not
"cleaned it up" yet, so be easy on my code;-)
http://mowyourlawn.com/temp/CGI_readToFile.txt

Does that explain it a little better?  

Aaron Bartell

-----Original Message-----
From: Brad Stone [mailto:brad@xxxxxxxxxxxx]
Sent: Friday, September 12, 2003 10:02 AM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] QtmhRdStin and QzhbCgiParse Limitation


If an uploading of a file works, then GETURI will still
work as it can also simulate an HTML file upload form.

Aaron, you need to describe what's going on a little better
and I think we'll help.  If the problem is your program
can't read enough from StdIn then you are making a client
request and GETURI or something similar would work.

Brad

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.