Re: CGIDEV2 Question
"Art Tostaine, Jr." <[email protected]>
| Newsgroups | gmane.comp.systems.as400.web |
|---|---|
| Message-ID | <CACftfu45X0GBEOuXXLgzwQku=tLG2Ac14xC_u6i1=4+Uuc1eaA@mail.gmail.com> |
Thanks Brad. Am I writing my HTML correctly in the RPG program? On Tue, Oct 19, 2021 at 12:55 PM Brad Stone <[email protected]> wrote: > Art, > > What I do is make sure after processing (or submitting the job to be > processed for a quicker response an you don't care about any response from > the backend process) write out HTTP headers with the location header > specifying the redirect location you want to go to > > Location: /index.html [CRLF][CRLF] > > Don't forget to end it with 2 CRLFs after the headers. > > You can also use Javascript, but why? :) > > On Tue, Oct 19, 2021 at 11:46 AM Art Tostaine, Jr. <[email protected]> > wrote: > > > Also the browser reports this error: > > > > Internal Server Error > > > > The server encountered an internal error or misconfiguration and was > unable > > to complete your request. > > > > Contact the server administrator at [no address given] to inform them of > > the time this error occurred, and the actions you performed just before > > this error. > > > > More information about this error may be available in the server error > log. > > > > On Tue, Oct 19, 2021 at 12:38 PM Art Tostaine, Jr. <[email protected]> > > wrote: > > > > > I'm successfully processing a post transaction from a payment provider > > > with my RPG program. > > > > > > After I update my tables I need to redirect the browser back to our > home > > > page. I have HTML that successfully does this and I put it in the ifs > > > directory CgidevExtHtml. > > > > > > I tried merging some examples into my working program but in the logs I > > > get this message: > > > > > > ZSRV_MSG0947: End of script output before headers: File name is > > > getpayzdr.pgm > > > > > > RPG Code snip that does the output: > > > C eval IfsMultIndicators = getHtmlIfsMult( > > > C %trim(exthtml):'<as400>') > > > C callp wrtsection('part1') > > > > > > my HTML Redirect page: https://code.midrange.com/62bf13cf06.html > > > > > > > > > > > -- > > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > > list > > To post a message email: [email protected] > > To subscribe, unsubscribe, or change list options, > > visit: https://lists.midrange.com/mailman/listinfo/web400 > > or email: [email protected] > > Before posting, please take a moment to review the archives > > at https://archive.midrange.com/web400. > > > > > -- > This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing > list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/web400 > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/web400. > > -- This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/web400 or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/web400.