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



At the beginning of the first template section that you write to the
browser you need to have at least the following. The string
"Content-type: text/html" followed by 2 carriage return linefeeds
(CRLF)s. You may add other header information but it must be followed by
the 2 CRLFs which tell the http server that this is the end of the
header section. I use a "html" section that only contains the header
information, and is the same for all of my templates. 
 
A sample would be:
 
/$html
Content-type: text/html

/$NextSection
 
Joe Lee



>>> mskvarenina@xxxxxxx 10/21/2004 14:03:17 >>>
Hmmm. Looks like you're saying I need something like this --> <meta
http-equiv="content-type" content="text/html; charset=UTF-8">

Which I just confirmed is not coming out of my existing CGI apps using
original server.

Is this what you're talking about?


-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]
On
Behalf Of Bartell, Aaron L. (TC)
Sent: Thursday, October 21, 2004 4:25 PM
To: Web Enabling the AS400 / iSeries
Subject: RE: [WEB400] Browser tries to download program

I am embarrassed to give the answer because I should have looked at
this
first, but make sure your headers are being sent. CGIDEV2 does not
output your headers for you, you must included them in one of your
templates. 

I am guessing that the IBM Original HTTP server was being nice and
must
have sent a default header if a program just starts pushing stuff out
without headers. Apache doesn't do that.

HTH,
Aaron Bartell 

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]

Sent: Thursday, October 21, 2004 3:01 PM
To: 'Web Enabling the AS400 / iSeries'
Subject: RE: [WEB400] Browser tries to download program

Great thread. Has anyone discovered the solution yet?

I too attempted to migrate my original servers to Apache today and I
too
received the file download box when I tried to run a RPG CGI program. 

My apologies for posting the entire config file below but I'm sure
there's something in there causing the error and I'm hoping someone
can
recognize it...

LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM
LiveLocalCache Off
<Location />
<LimitExcept GET HEAD OPTIONS POST TRACE>
Order Allow,Deny
Deny From all
</LimitExcept>
</Location>
Options -ExecCGI -SymLinksIfOwnerMatch -Includes -IncludesNoExec
-Indexes -MultiViews DefaultType www/unknown Listen 10.100.15.184:81
ErrorLogFormatDDS On ErrorLog Off ThreadsPerChild 40
MaxKeepAliveRequests 1 TimeOut 120 KeepAliveTimeout 4 AccessFileName
.htaccess DirectoryIndex welcome.html index.html CGIConvMode
%%MIXED/MIXED%% IndexOptions -DescriptionWidth -FancyIndexing
-FoldersFirst -IconHeight -IconsAreLinks -IconWidth -IgnoreCase
-IgnoreClient -NameWidth -NameMinWidth -ScanHTMLTitles
-SelectiveDirAccess -ShowSmallFileBytes -ShowOwner
-SuppressColumnSorting -SuppressDescription -SuppressHTMLPreamble
-SuppressIcon -SuppressLastModified -SuppressRules -SuppressSize
-TrackModified -VersionSort HeaderName README <Directory />
Order Allow,Deny
Deny From all
</Directory>
<Directory /Docimaging/>
Allow From all
</Directory>
<Directory /WebPages/>
Allow From all
</Directory>
<Directory /QIBM/ProdData/hostondemand/HOD/>
Allow From all
</Directory>
<Directory /cgidev/>
Allow From all
</Directory>
<Directory /QSYS.LIB/CGIDEV2.LIB/>
Allow From all
CGIConvMode %%EBCDIC/MIXED%%
</Directory>
<Directory /QSYS.LIB/CGIBIN.LIB/>
CGIConvMode %%EBCDIC/MIXED%%
Allow From all
<FilesMatch ^(.*)\.PGM$>
Options +ExecCGI
Allow From all
</FilesMatch>
</Directory>
<Directory /cgibin/>
Allow From all
</Directory>
<Directory /QSYS.LIB/CGIBIN.LIB/HTMLSRC.FILE/>
Allow From all
</Directory>
<VirtualHost 10.100.15.184:443>
SSLEngine Off
SSLAppName QIBM_HTTP_SERVER_CONFIG
SSLClientAuth None
SetEnv HTTPS_PORT 443
</VirtualHost>
MapMatch ^/cgibinh/(.*)\.htm$ /cgibinh/$1.mbr MapMatch ^/cgibinh/(.*)
/QSYS.LIB/CGIBIN.LIB/HTMLSRC.FILE/$1
AliasMatch ^/QSYS\.LIB/CGIBIN\.LIB/HTMLSRC\.FILE/(.*)
/QSYS.LIB/CGIBIN.LIB/HTMLSRC.FILE/$1
AliasMatch ^/cgibin/(.*) /cgibin/$1
ScriptAlias /CGIBIN.LIB/ /QSYS.LIB/CGIBIN.LIB/ ScriptAliasMatch
^/cgibinp/(.*) /QSYS.LIB/CGIBIN.LIB/$1 MapMatch ^/cgidev2/start$
/QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/DEMOFRAME.MBR
MapMatch ^/cgidev2/setup$
/QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/SETUPCSA.MBR
MapMatch ^/cgidev2h/(.*)\.htm$ /cgidev2h/$1.mbr MapMatch
^/cgidev2o/(.*)\.htm$ /cgidev2o/$1.mbr MapMatch
^/cgidev2oit/(.*)\.htm$
/cgidev2oit/$1.mbr MapMatch ^/cgidev2o/(.*)
/QSYS.LIB/CGIDEV2.LIB/DEMOHTML.FILE/$1
MapMatch ^/cgidev2oit/(.*) /QSYS.LIB/CGIDEV2.LIB/DEMOHTMLIT.FILE/$1
MapMatch ^/cgidev2h/(.*) /QSYS.LIB/CGIDEV2.LIB/HTMLSRC.FILE/$1
MapMatch ^/cgidev2r/(.*) /QSYS.LIB/CGIDEV2.LIB/QRPGLESRC.FILE/$1
MapMatch ^/cgidev2l/(.*) /QSYS.LIB/CGIDEV2.LIB/QCLSRC.FILE/$1
MapMatch ^/cgidev2d/(.*) /QSYS.LIB/CGIDEV2.LIB/QDDSSRC.FILE/$1
MapMatch ^/cgidev2f/(.*) /cgidev/$1
AliasMatch ^/QSYS\.LIB/CGIDEV2\.LIB/(.*) /QSYS.LIB/CGIDEV2.LIB/$1
AliasMatch ^/cgidev/(.*) /cgidev/$1 ScriptAliasMatch ^/cgidev2p/(.*)
/QSYS.LIB/CGIDEV2.LIB/$1 MapMatch ^/CGI-BIN/APPS/(.*)
/QSYS.LIB/CGIBIN.LIB/DB2WWW.PGM/$1
MapMatch ^/cgi-bin/apps/(.*) /QSYS.LIB/CGIBIN.LIB/DB2WWW.PGM/$1
ScriptAliasMatch ^/QSYS\.LIB/CGIBIN\.LIB/(.*) /QSYS.LIB/CGIBIN.LIB/$1
ScriptAliasMatch ^/cgi-bin/(.*) /QSYS.LIB/CGIBIN.LIB/$1.PGM AliasMatch
^/hod/(.*) /QIBM/ProdData/hostondemand/HOD/$1
AliasMatch ^/(.*) /WebPages/$1
AliasMatch ^/documents/(.*) /Docimaging/$1 # HostName 10.100.15.184 #
AccessReportDoDnsLookup On # DoReporting Off 0 # DoWebUsageMining Off
0
# ReportProcessOldLogs Append # ReportDataArchive purge #
ReportDataExpire 35 # ReportDataSizeLimit 30

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx]

On Behalf Of Tom Jedrzejewicz
Sent: Thursday, September 09, 2004 5:16 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Browser tries to download program

My suggestions . . .

1. Get to the most current CGIDEV2 release level. There has been a
bunch done to CGIDEV2 in the 3 years, and a lot of sites have
converted
to Apache.

2. Download the Easy/400 deliverable EASY400APC - it has the other
CGIDEV2 deliverables running under Apache.

http://www-922.ibm.com/easy400p/downloads.html 

Between those two, you should be running, or in a place where figuring
the problem is easier.

Regards.

On Thu, 9 Sep 2004 11:39:42 -0500, Bartell, Aaron L. (TC)
< albartell@xxxxxxxxxxxxxx > wrote:
> Update.
> 
> >Do you have the xTools (www.rpgxtools.com)?
> I have my own tools that I have been able to prove this out with, but

> thanks for the link. I will check those out also.
> 
> I have both the CGIDEV2 program and RPG CGI program running from the

> same Apache config both out of the same library (AS400CGI) both 
> using/outputting the same IFS file (/CGIRPG/logtime.html). I created

> an RPG CGI pgm to output the logtime.html file just so I could rule 
> out that it wasn't a CCSID issue with the file.
> 
> When I run both programs from an IBM Original HTTP server they both 
> work fine unchanged.
> 
> I must note that our CGIDEV2 version is '2001-09-21 09:20:36'. I got

> that by doing a DSPDTAARA DTAARA(CGIDEV2/VERSION). In my mind that 
> shouldn't make a difference given that the CGIDEV2 programs operate 
> just fine under IBM Original HTTP server.
> 
> We also changed QCSSID to 37 from 65535 with no effect (this was 
> suggested on the CGIDEV2 site).
> 
> I think I have narrowed it down to it having something to do with 
> CGIDEV2. Any ideas based on the information I have presented?
> 
> The machine is on CUM PTF 4077. Are there other specific PTF's that
I

> need to apply that wouldn't be covered by this CUM?
> 
> Apache config that I am now using (from Brad Stone's site)
> 
> Listen *:2012
> 
> #DocumentRoot /myweb
> #DirectoryIndex index.html
> 
> CGIConvMode %%EBCDIC/EBCDIC%%
> 
> ScriptAliasMatch ^/cgi-bin/(.*) /qsys.lib/as400cgi.lib/$1.pgm
> 
> <Directory />
> Options None
> AllowOverride None
> order deny,allow
> deny from all
> </Directory>
> 
> <Directory /myweb>
> AllowOverride None
> order allow,deny
> allow from all
> <FilesMatch "\.html(\..+)?$">
> Options +Includes
> SetOutputFilter Includes
> </FilesMatch>
> </Directory>
> 
> <Directory /qsys.lib/as400cgi.lib>
> allow from all
> order allow,deny
> Options +ExecCGI +Includes
> SetOutputFilter Includes
> </Directory>
> 
> 
> 
> _______________________________________________
> 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 .
> 
> 



--
Tom Jedrzejewicz
tomjedrz@xxxxxxxxx 
_______________________________________________
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 .


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


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



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

Follow-Ups:

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.