I have written a URL connection program, which would request a webpage from the server. I find that HTTP headers are missing from the the text that I get. Could anyone suggest what can I write more in this program so that I can get to see
HTTP/1.1 200 OK
Content-Type: tex/html
apart from the usual <html> tags.
My program
==========
Request for Moderators: Please don't move it in HTML forums, because it is
servlet programmers who deal with getting and setting of headers and not HTML programmers.