× 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.



There's several options available to you. These have various security
exposures you should investigate before putting them into production.

If you can create a share (like Windows) and let the AS/400 see it from the
/QNTC directory, you can store it directly to the web server.
For example, if I shared c:\inetpub\wwwroot\, and could see it from
/qntc/lgoodbar/website, I could use wrtsectionstmf (I think that's the call)
to write directly to the site.

If you can't see the site directly, but can get a ftp connection, you can
create an intermediate workfile in the IFS then FTP it to PC's website. Again,
use wrtsectionstmf to write the HTML to the IFS, then call a FTP script to put
that workfile to the web server. You could also do a remote command to put the
data to the server, if FTP doesn't work.

There may be other ways, but these first come to mind.

One note, since you are creating HTML files, you need to convert the header
information to <meta http-equiv...>. You won't need the Content-type: html
because on the web server it will be a .htm or .html file. Convert the
Expires: 0 header to <meta http-equiv="expires" content="0" /> (I think).
Otherwise, these will be text lines viewed in the browser window.

HTH,
Loyd

On Wed, 28 Jan 2004 14:58:50 -0000, "Wayne Achenbaum" <wache@xxxxxxxxxxx>
wrote:

>
>Hi all, I am brand new to this list and Web programming itself. I have a 
>question regarding an RPGLE CGI program using CGIDEV2. Is it at all possible 
>to output Html to a server that is not the Server that the CGI programming is 
>running in(A Non-As400 Server)? I am currently communicating with an external 
>server to the AS400 that now posts a form to my AS400 CGI Pgm running in an 
>APACHE server. That pgm if sucessfull wants to put out a Thank you page on the 
>Server that it came from. I am currently accomplishing this by outputting an 
>empty web page that does a redirect to the thank you page with the specific 
>URl. I did not Paste the Html for the real Thank you Page. 
>
>TIA for any suggestions
>
>Wayne Achenbaum    
>Slomin's Inc.
>
>This is the Html Output from the CGI program on the AS400
>
><AS400>top                     *** SECTION "TOP"
>Content-type: text/html
>Expires: 0
>
><HTML>
><HEAD><TITLE>/%Title%/</TITLE>
><meta http-equiv="refresh" 
>content="1;URL=http://www.slomins.com/thankyou.html";>
>
></HEAD>
><BASE TARGET="_top">
>
><body text=#000000 bgcolor=#FFFFFF link="#0000FF" vlink=#000080 
>alink="#800080">
></body>
></html>

--  
Mediocrity: It takes a lot less time and most people won't notice
the difference until it's too late. <http://www.despair.com/>
loyd@xxxxxxxxxxxxxx  ICQ#504581  http://www.blackrobes.net/



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.