Consultor Eletrônico



Kbase P118013: Can not run Webspeed application with messenger on Solaris - Getting File Download Dialog Box
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   8/15/2006
Status: Unverified

FACT(s) (Environment):

OpenEdge 10.x
WebSpeed 3.x

SYMPTOM(s):

Can not run Webspeed application with messenger on Solaris

The browser starts downloading file when running webspeed .p code

cgiip messenger runs on Solaris with Apache as web server

Ethereal capture for the failed session:


HTTP/1.1 200 OK
Date: Fri, 11 Aug 2006 20:28:44 GMT
Server: Apache/1.3.31 (Unix) mod_perl/1.25
Cache-Control: no-cache
Context-Type: text/html
Expires: -1
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/x-sh

CAUSE:

There is typo in application when setting content type:


The code was:
output-http-header('Context-Type','text/html').

but the code should be
output-http-header('Content-Type','text/html').

Apache processed this header and sent wrong headers to browser, the header sent was

Content-Type: application/x-sh
Thus browser started downloading the application


FIX:

Fix the application code and output correct header

output-http-header('Content-Type','text/html').