All content returned from Web servers must always specify the content type. Internet Explorer is more forgiving than other browsers and assumes that the content type is "text/html". Firefox, on the other hand, does not make any assumptions. Since it does not know how to process the incoming content, it simply presents the Open/Save dialog and asks the user what they want to do with the content.
The right solution would be to modify every single script to add the content type. If this task is too daunting, then you can do the same in fw_exit.prg, which runs after each request:
Sent by enlai on 09/19/2007 01:34:52 AM:
I am currently using Foxweb 2.6. Most of my programmes were developed
since I started using Foxweb 1.29c. We have not changed much of the
coding of the programmes since we have upgraded our Foxweb.
We had no problems running all our scripts and web applications developed on Foxweb in IE. Recently we have decided to switch browsers from IE to
Firefox. We started testing our web applications on Foxweb and we encounter the Firefox prompting that it is trying to open the programme which is "application/octet-stream" and asked "What should firefox do with this file?"
with options to open with/Save to Disk. We have no problems with IE.
Our programmes are still using the "html_out=Mergetxt(ReadFile(file.mrg))"
method to display response.
and it worked on Firefox.
I have hundreds of programmes
producing based on the "html_out" method, is there an easier way to overcome this issue instead of changing codes on all my programmes.
Foxweb is currently running on NT4 with IIS4.