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.
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).
i use progress 9.1d.
colin, what content type i should use?
Try output-content-type ("text/dhtml":U).
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 :(
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
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.
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
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.
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
thank you patrick and all the others!!