| Author |
web server
|
mj zammit
Ranch Hand
Joined: Nov 16, 2008
Posts: 49
|
|
Hi I built a web server which outputs HTML. Now when i run it and call for the HTML on Internet Explorer the HTML is viewed, but when i call on Firefox no HTML is outputted... why is that??? here is the source code: package myservertrial1;
|
 |
Paul Clapham
Bartender
Joined: Oct 14, 2005
Posts: 16487
|
|
If you install Live HTTP Headers into your Firefox you will see the headers attached to your response. I don't think you meant to write this header:
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8291
|
|
|
Look very closely at the structure of an HTTP response. You are very close.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
mj zammit
Ranch Hand
Joined: Nov 16, 2008
Posts: 49
|
|
thank you for both your help. yes there was no need for placing doctype and i also had to arrange the reply header thanks again
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
|
IN particular, the issue was that you didn't have a blank line after the headers, right?
|
[Jess in Action][AskingGoodQuestions]
|
 |
mj zammit
Ranch Hand
Joined: Nov 16, 2008
Posts: 49
|
|
Sorry for the late reply This is the modified reply header
|
 |
 |
|
|
subject: web server
|
|
|