Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

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

  • 1 trả lời
  • 2 gặp vấn đề này
  • 16 lượt xem
  • Trả lời mới nhất được viết bởi 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?

Tất cả các câu trả lời (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?