Sending HTTP response with raw sockets, client doesn't receive message
<p>I am trying to send this message entity body to the client. But, this message seems to be not transmitted. What possible reason is that results in this situation ? String message</p>

<pre><code>String message = "HTTP/1.0 404 Not Found\r\n" +
                  "Server: " + 
                 "Content-type: html" +
                 "error\r\n" +
                 "&lt;HTML&gt;" +
                 "&lt;HEAD&gt;&lt;TITLE&gt;404&lt;/TITLE&gt;&lt;/HEAD&gt;" +
                 "&lt;BODY&gt;404 Not Found" +
                 "&lt;br&gt; nothing &lt;/BODY&gt;&lt;/HTML&gt;" ;
</code></pre>

<p>Then, I have used PrintStream instace to send the message, its argument is <code>message.getBytes()</code></p>

<p>The html message is not seen on the browser.</p>

<pre><code>  PrintStream sender = new PrintStream(this.socket.getOutputStream());

  String message = // above lines

  sender.write(message.getBytes())
</code></pre>
