regards:
I have a xhtml file named test.html
I run a java code to use ServerSocket to simulate my machine as a HTTP
server.When client connect to my HTTP server machine,the java code will
send the test.html file to client by the method socket.getoutputstream();
I would like to ask is that:
Before sending the file test.html,what kind of HTTP headers I should choose
to send to the client?(If information of the file test.html is known)
----------------------------------------------------------------------------
My question is that I want to send the client a xhtml file by socket and
HTTP protocol.what kind of HTTP headers I should send to the client and let
the client can browse my file test.html.
thank you
any suggestions is welcome.