I am writing a very simple webserver (very basic) in Java which reads the
request from the browser. I could manage to print the request and its headers
to the screen console.
Can anyone please give me some hints how I can send the HTTP request and
the request headers back to the browser as an HTML page not to my console?

Thank you very much