Re: CGIDEV2 Question

Brad Stone <[email protected]>
Newsgroups gmane.comp.systems.as400.web
Message-ID <CAAGV8OdyKAK5MD8X139U-Lge3qouhdVVh2rzD2oCz9_yHH1VUw@mail.gmail.com>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.