Zoeken in Support

Vermijd ondersteuningsscams. We zullen u nooit vragen een telefoonnummer te bellen, er een sms naar te sturen of persoonlijke gegevens te delen. Meld verdachte activiteit met de optie ‘Misbruik melden’.

Meer info

Deze conversatie is gearchiveerd. Stel een nieuwe vraag als u hulp nodig hebt.

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

  • 1 antwoord
  • 2 hebben dit probleem
  • 16 weergaven
  • Laatste antwoord van 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?

Alle antwoorden (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?