webspeed vs dhtml

Posted by Admin on 12-May-2008 08:06

All Replies

Posted by Matt Baker on 12-May-2008 10:57

What version of Webspeed are you using? I believe newer versions output this line at the end of the request and not at the beginning to address this very issue.

Posted by Admin on 12-May-2008 19:33

This is done inside web-util.p based on the output-content-type being set to either "text/html*" or "text/x-server-parsed-html*" ... so two options, change the content-type within your app or 'modify' your local version of web-util.p (and remember to port with your application).

Posted by Admin on 13-May-2008 04:00

i use progress 9.1d.

colin, what content type i should use?

Posted by Admin on 13-May-2008 20:34

Try output-content-type ("text/dhtml":U).

Posted by Admin on 15-May-2008 10:31

i tried that output content type,

but now webserver doesnt recognise it as webspeed procedure,

so internet explorer asks if i want to save it or open with procedure editor :(

Posted by Admin on 15-May-2008 20:18

Kristjan,

I just fixed this the other day for a client, as well.

The line is located in both src/web/method/cgiutils.i and src/web/object/web-util.p. After modifying these files, src/web/object/web-util.p will need to be recompiled and the .r code placed in tty/web/object. If the webspeed brokers are running when the changes are made, they will need to be restarted.

This information can be found in the knowledge base, as well.
ID: P25255
Title: "How to remove the Generated by Webspeed header"

Patrick Carlo-Hickman
pcarlo[at]allegroconsultants[dot]com
Allegro Consultants
http://www.allegroconsultants.com

Posted by Admin on 20-May-2008 05:55

how i should modify these files?

just cooment out the part that generates the line or replace it with something.

how webserver then knows its a webspeed procedure?

i tried manually remove the first line of the webspeed procedure.

the it stopped acting as webspeed procedure.

Posted by rstanciu on 20-May-2008 08:45

try using only html in your webspeed procedure:

output-content-type ("html":U).

I tested with Progress OE 10.1B and Firefox 2.0 Linux

and it works:

http://83.206.8.161:82/cgi-bin/wspd_cgi.sh/WService=validwsdl/validwsdl.p

Rares

Posted by Admin on 21-May-2008 04:18

Posted by rstanciu on 21-May-2008 06:48

is true , using IE I get the same message, but using Firefox it works.

nevermind ....

For the v.9 I you have to modify src\web\method\cgiutils.i

and not the web-disp.p.

here is the source , you have to compile all with your progress version.

Posted by Admin on 22-May-2008 12:04

In src\web\method\cgiutils.i, find the following lines and comment them out:

IF output-content-type BEGINS "text/html":U OR
output-content-type BEGINS "text/x-server-parsed-html":U THEN
{&OUT}
"~n~n":U
.

In src\web\objects\web-util.p, find the following lines and comment them out:

IF CAN-DO ("text/html*,text/x-server-parsed-html*",output-content-type) THEN
{&OUT}
"~n~n":U.

Once that has been done, compile src\web\objects\web-util.p, and place the .r code in tty\web\objects.

Let me know if you have any more questions.

Patrick Carlo-Hickman
http://AllegroConsultants.com/progresservices
804-553-1130
Allegro has the Progress 4GL Programmer Experts You Need
Symix, SyteLine, WDS, MFG/PRO, Hagen, and More

Posted by Admin on 23-May-2008 03:49

thank you patrick and all the others!!

This thread is closed