Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

A corectly formed html document being sent locally from a program via an IP link displays as text

  • 1 回覆
  • 2 有這個問題
  • 16 次檢視
  • 最近回覆由 atomix01

more options

This seems to be specific to FF 8.0. FF 7.0.1 works correctly. Information from a form is sent to program X via an IP link and the program responds to FF with a properly formed HTML document. In FF 7.0.1, the document displays as an HTML document. In FF 8, it displays as a text string. In FF 8, the PAGE INFO Type is text/plain. In FF 7.0.1 it is text/html. Why is this happening?

This seems to be specific to FF 8.0. FF 7.0.1 works correctly. Information from a form is sent to program X via an IP link and the program responds to FF with a properly formed HTML document. In FF 7.0.1, the document displays as an HTML document. In FF 8, it displays as a text string. In FF 8, the PAGE INFO Type is text/plain. In FF 7.0.1 it is text/html. Why is this happening?

所有回覆 (1)

more options

Here's some more info on this problem: the user has a web page with a form on it. When the "submit" button is pressed, it is sent via port 80 to the localhost. A user-written program is listening on port 80 on the localhost, not a full-blown web server like Apache. This user-written program sends back a short html document to the user. In prior versions of FF, this worked fine. With FF8.0, the user now sees the html document as just plain text.

The user-written program that is standing in for the web server does not write out any headers. My guess is that it needs to send out at least a Content-Type: text/html header before it sends the html code to mnake FF8.0 happy, but I'm kind of guessing here. Is there someone else that can shed some light on this?