in reply to getting the html to the browser

Perhaps you did not send content type header (eq 'text/html') to browser, and your mozilla strictly does not know and does not try any guess, how to serve content of unknown content type.