File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "web server" Watch "web server" New topic
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: 18656
    
    8

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: 8927
    
    9

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: 24187
    
  34

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web server